summaryrefslogtreecommitdiffstats
path: root/conf.d/project/asoundrc-fulup4a
diff options
context:
space:
mode:
authorLoïc Collignon <loic.collignon@iot.bzh>2018-06-05 10:29:47 +0200
committerLoïc Collignon <loic.collignon@iot.bzh>2018-06-12 15:26:21 +0200
commit322f8932476eda944c7d3ac65eafde12c69b2ae9 (patch)
tree3146f053d8f3f8f8324d7e41493b929d348a3f9c /conf.d/project/asoundrc-fulup4a
parent545c14e62971b23c704bc3d7f696e934e330656d (diff)
Rewrite of the High Level API using the new HAL model
The new HAL model need the High Level API to be rewritten. This is the first version of this rewrite, still in progress but should work. Change-Id: I5c94cf39d84cefae6b7a179c09d95e645673e8d4 Signed-off-by: Loïc Collignon <loic.collignon@iot.bzh>
Diffstat (limited to 'conf.d/project/asoundrc-fulup4a')
-rw-r--r--conf.d/project/asoundrc-fulup4a171
1 files changed, 0 insertions, 171 deletions
diff --git a/conf.d/project/asoundrc-fulup4a b/conf.d/project/asoundrc-fulup4a
deleted file mode 100644
index 0942c0b..0000000
--- a/conf.d/project/asoundrc-fulup4a
+++ /dev/null
@@ -1,171 +0,0 @@
-#AGL Audio High Level ALSA configuration
-#This define 2 sounds card with 8 audio roles each
-#The alsa soft volume control name must match with the HAL Control Name
-
-pcm.SoftMixer {
- type dmix
- slave {pcm "hw:v1340"} #Jabra Solmate 1
- ipc_key 1001 # ipc_key should be unique to each dmix
-}
-
-# -----------------------------------------------------
-# Register ControllerHookPlugin (ToiBeFix fullpath)
-# -----------------------------------------------------
-pcm_hook_type.CtlHookPlugin {
- install "AlsaInstallHook"
- lib "/home/fulup/Workspace/Audio-4a/alsa-4a/build/alsa-hook/policy_alsa_hook.so"
-}
-
-pcm.Entertainment_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Entertainment_Volume"
- }
-}
-
-pcm.Guidance_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Guidance_Volume"
- }
-}
-
-pcm.Communications_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Communications_Volume"
- }
-}
-
-pcm.Notification_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Notification_Volume"
- }
-}
-
-pcm.Warning_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Warning_Volume"
- }
-}
-
-pcm.System_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "System_Volume"
- }
-}
-
-pcm.Startup_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- name "Startup_Volume"
- }
-}
-
-pcm.Shutdown_Main {
- type softvol
- slave.pcm "SoftMixer"
- control{
- 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 {
- set_stream_state "{'state':'idle'}"
- 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}
- }
- }
- }
-}
-
-# ----------------------------------------------------
-# Define one hooked PCM channel per Audio Roles
-# ----------------------------------------------------
-pcm.Navigation {
- type hooks
- slave {pcm "Guidance_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': 'Guidance', 'endpoint_type':'sink'}"
- set_stream_state "{'state':'running'}"
- }
-
- # api subcall to request a role
- release {
- set_stream_state "{'state':'idle'}"
- 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}
- }
- }
- }
-}