aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--alsa-binding/Alsa-RegEvt.c1
-rw-r--r--alsa-hook/README.md14
2 files changed, 7 insertions, 8 deletions
diff --git a/alsa-binding/Alsa-RegEvt.c b/alsa-binding/Alsa-RegEvt.c
index 035806e..ce81721 100644
--- a/alsa-binding/Alsa-RegEvt.c
+++ b/alsa-binding/Alsa-RegEvt.c
@@ -235,7 +235,6 @@ PUBLIC void alsaEvtSubcribe(afb_req request) {
// increase usage count and return success
sndHandles[idx].ucount++;
- snd_ctl_close(ctlDev);
afb_req_success(request, NULL, NULL);
// use OnErrorExit
diff --git a/alsa-hook/README.md b/alsa-hook/README.md
index a51ec19..f6cc9a3 100644
--- a/alsa-hook/README.md
+++ b/alsa-hook/README.md
@@ -128,7 +128,7 @@ pcm.Multimedia {
verbose true
# uri to audio-4a policy engine
- uri="unix:/var/tmp/pol4a"
+ uri="unix:/var/tmp/ahl-4a"
# timeout in ms (default 500)
timeout 5000
@@ -138,20 +138,20 @@ pcm.Multimedia {
# api subcall to request a role
request {
- multimedia-role "{'uid':'alsa-hook-client'}"
- signal-timeout "{'timeout':180, 'music':'quit'}"
+ open_stream "{'role': 'entertainment'}"
+ set-stream "{'role': 'entertainment'}"
}
# api subcall to request a role
release {
- release-role "{'uid':'alsa-hook-client'}"
+ close-stream "{'role': 'entertainment'}"
}
# map AGL event on Unix signal. Search in event for json key=value
events {
- sig-02 {search music, value quit}
- sig-31 {search event, value start}
- sig-32 {search event, value start}
+ sig-02 {search state_event, value 1}
+ sig-31 {search state_event, value 2}
+ sig-32 {search state_event, value 3}
}
}
}