summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFulup Ar Foll <fulup@iot.bzh>2017-11-02 23:19:30 +0100
committerFulup Ar Foll <fulup@iot.bzh>2017-11-02 23:19:30 +0100
commiteac54aceceb2b465340fb6beb4ef635cb46d8237 (patch)
tree465774f0672558417039d866a18dbb2d8b2aec66
parent451d65660b62aa23e9d3083174153e9a5a068c5f (diff)
Fix double Close
-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}
}
}
}