diff options
author | fulup <fulup.arfoll@iot.bzh> | 2017-07-01 00:23:13 +0200 |
---|---|---|
committer | fulup <fulup.arfoll@iot.bzh> | 2017-07-01 00:23:13 +0200 |
commit | 1abf42ee54f669b523bb1a6f4d57d15d78ce0255 (patch) | |
tree | c47ddc036f88c8c83f72f9f68d40cef64fe0549f /conf.d/alsa/asoundrc.sample | |
parent | c326a053cdf8a4a9ce0fb02448293b45083d553c (diff) | |
parent | 21cd84156657e2f5be2115d90f3d4dbb50cc1509 (diff) |
Merge branch 'fulup-dev' of github.com:iotbzh/audio-bindings into fulup-dev
Diffstat (limited to 'conf.d/alsa/asoundrc.sample')
-rw-r--r-- | conf.d/alsa/asoundrc.sample | 72 |
1 files changed, 72 insertions, 0 deletions
diff --git a/conf.d/alsa/asoundrc.sample b/conf.d/alsa/asoundrc.sample new file mode 100644 index 0000000..bd5b3b7 --- /dev/null +++ b/conf.d/alsa/asoundrc.sample @@ -0,0 +1,72 @@ +# Dmixer mixe multiple audio channel into one +pcm.SoftMixer { + type dmix + ipc_key 1024 + ipc_key_add_uid false + ipc_perm 0666 # mixing for all users + + # Define target effective sound card (cannot be a plugin) + slave { + pcm "hw:v1340" #Jabra Solmate + period_time 0 + period_size 1024 + buffer_size 8192 + rate 44100 + } + + # DMIX can only map two channels + bindings { + 0 0 + 1 1 + } +} + +pcm.music { + type softvol + slave.pcm "SoftMixer" + control { + name "MasterMusic" + card 0 + } + + # Make this plugin visible from aplay -L + hint { + show on + description "Music" + } +} + +pcm.navi { + type softvol + slave { + pcm "SoftMixer" + } + control { + name "MasterNavi" + card 0 + } + hint { + show on + description "Navi" + } +} + +pcm.notif { + type softvol + slave { + pcm "SoftMixer" + } + control { + name "MasterNotif" + card 0 + } + hint { + show on + description "Notif" + } +} + +pcm.!default { + type plug + slave.pcm "SoftMixer" #make use of Softvol +} |