1 #AGL Audio High Level ALSA configuration
2 #This define 2 sounds card with 8 audio roles each
3 #The alsa soft volume control name must match with the HAL Control Name
7 slave {pcm "hw:@AUDIO_DEV_NAME_ID@"}
8 ipc_key 1001 # ipc_key should be unique to each dmix
11 # -----------------------------------------------------
12 # Register ControllerHookPlugin (ToiBeFix fullpath)
13 # -----------------------------------------------------
14 pcm_hook_type.CtlHookPlugin {
15 install "AlsaInstallHook"
16 lib "@INSTALL_PREFIX@/lib/policy_alsa_hook.so"
19 pcm.Entertainment_Main {
21 slave.pcm "@AUDIO_DEV_NAME@"
23 name "Entertainment_Volume"
29 slave.pcm "@AUDIO_DEV_NAME@"
31 name "Guidance_Volume"
35 pcm.Communications_Main {
37 slave.pcm "@AUDIO_DEV_NAME@"
39 name "Communications_Volume"
43 pcm.Notification_Main {
45 slave.pcm "@AUDIO_DEV_NAME@"
47 name "Notification_Volume"
53 slave.pcm "@AUDIO_DEV_NAME@"
61 slave.pcm "@AUDIO_DEV_NAME@"
69 slave.pcm "@AUDIO_DEV_NAME@"
77 slave.pcm "@AUDIO_DEV_NAME@"
79 name "Shutdown_Volume"
83 # ----------------------------------------------------
84 # Define one hooked PCM channel per Audio Roles
85 # ----------------------------------------------------
88 slave {pcm "Entertainment_Main"}
90 comment "Defined used hook sharelib and provide arguments/config to install func"
94 # print few log messages (default false)
97 # uri to audio-4a policy engine
98 uri="unix:/run/user/0/apis/ws/ahl-4a"
100 # timeout in ms (default 500)
103 # force API synchronous mode
106 # api subcall to request a role
108 stream_open "{'audio_role': 'Entertainment', 'endpoint_type':'sink'}"
109 set_stream_state "{'state':'running'}"
112 # api subcall to request a role
114 set_stream_state "{'state':'idle'}"
118 # map AGL event on Unix signal. Search in event for json key=value
120 sig-02 {search state_event, value 1}
121 sig-31 {search state_event, value 2}
122 sig-32 {search state_event, value 3}
128 # ----------------------------------------------------
129 # Define one hooked PCM channel per Audio Roles
130 # ----------------------------------------------------
133 slave {pcm "Guidance_Main"}
135 comment "Defined used hook sharelib and provide arguments/config to install func"
139 # print few log messages (default false)
142 # uri to audio-4a policy engine
143 uri="unix:/run/user/0/apis/ws/ahl-4a"
145 # timeout in ms (default 500)
148 # force API synchronous mode
151 # api subcall to request a role
153 stream_open "{'audio_role': 'Guidance', 'endpoint_type':'sink'}"
154 set_stream_state "{'state':'running'}"
157 # api subcall to request a role
159 set_stream_state "{'state':'idle'}"
163 # map AGL event on Unix signal. Search in event for json key=value
165 sig-02 {search state_event, value 1}
166 sig-31 {search state_event, value 2}
167 sig-32 {search state_event, value 3}