aboutsummaryrefslogtreecommitdiffstats
path: root/Alsa-Plugin
diff options
context:
space:
mode:
Diffstat (limited to 'Alsa-Plugin')
-rw-r--r--Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c5
-rw-r--r--Alsa-Plugin/Alsa-Policy-Hook/README.md6
2 files changed, 5 insertions, 6 deletions
diff --git a/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c b/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c
index 501ebf9..3b52f5b 100644
--- a/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c
+++ b/Alsa-Plugin/Alsa-Policy-Hook/PolicyHookCb.c
@@ -58,9 +58,8 @@
#endif
// Currently not implemented
-#define UNUSED(x) UNUSED_ ## x __attribute__((__unused__))
-#define UNUSED_FUNCTION(x) __attribute__((__unused__)) UNUSED_ ## x
-void OnRequestCB(void* UNUSED(handle) , const char* UNUSED(api), const char* UNUSED(verb), struct afb_wsj1_msg*UNUSED(msg)) {}
+#define UNUSED_ARG(x) UNUSED_ ## x __attribute__((__unused__))
+void OnRequestCB(void* UNUSED_ARG(handle) , const char* UNUSED_ARG(api), const char* UNUSED_ARG(verb), struct afb_wsj1_msg*UNUSED_ARG(msg)) {}
typedef struct {
const char *api;
diff --git a/Alsa-Plugin/Alsa-Policy-Hook/README.md b/Alsa-Plugin/Alsa-Policy-Hook/README.md
index ce0553c..537418d 100644
--- a/Alsa-Plugin/Alsa-Policy-Hook/README.md
+++ b/Alsa-Plugin/Alsa-Policy-Hook/README.md
@@ -40,17 +40,17 @@ pcm.MyNavigationHook {
request {
# Request autorisation to write on navigation
RequestNavigation {
- api "polctl"
+ api "control"
verb "navigation"
}
# subscribe to Audio Agent Event
SubscriveEvents {
- api "polctl"
+ api "control"
verb "monitor"
}
# force PCM stop after 10s
TestAutoStop {
- api "polctl"
+ api "control"
verb "event_test"
query "{'label':'stop', 'delay':10000}"
}