diff options
author | Fulup Ar Foll <fulup@iot.bzh> | 2017-11-05 15:37:21 +0100 |
---|---|---|
committer | Fulup Ar Foll <fulup@iot.bzh> | 2017-11-05 15:37:21 +0100 |
commit | 269cda8f7738d5e3145b01ceefd5602077e72556 (patch) | |
tree | cc533101d6e5052470ee74e1ff3986863a95d16a /conf.d/project | |
parent | 2e2cf0b8f97c8a72255ab0b977f94bd6c684b203 (diff) |
Update Fulup Testing Config
Diffstat (limited to 'conf.d/project')
-rw-r--r-- | conf.d/project/asoundrc-fulup4a | 45 |
1 files changed, 45 insertions, 0 deletions
diff --git a/conf.d/project/asoundrc-fulup4a b/conf.d/project/asoundrc-fulup4a index d500f5a..599c25f 100644 --- a/conf.d/project/asoundrc-fulup4a +++ b/conf.d/project/asoundrc-fulup4a @@ -79,3 +79,48 @@ pcm.Shutdown_Main { name "Shutdown_Volume" } } + +# ---------------------------------------------------- +# Define one hooked PCM channel per Audio Roles +# ---------------------------------------------------- +pcm.Multimedia { + type hooks + slave {pcm "Entertainment_Main"} + hooks.0 { + comment "Defined used hook sharelib and provide arguments/config to install func" + type "CtlHookPlugin" + hook_args { + + # print few log messages (default false) + verbose true + + # uri to audio-4a policy engine + uri="unix:/var/tmp/ahl-4a" + + # timeout in ms (default 500) + timeout 5000 + + # force API synchronous mode + synchronous true + + # api subcall to request a role + request { + stream_open "{'audio_role': 'entertainment', 'endpoint_type':'sink'}" + set_stream_state "{'state':'running'}" + } + + # api subcall to request a role + release { + stream_close "{}" + } + + # map AGL event on Unix signal. Search in event for json key=value + events { + sig-02 {search state_event, value 1} + sig-31 {search state_event, value 2} + sig-32 {search state_event, value 3} + } + } + } +} + |