aboutsummaryrefslogtreecommitdiffstats
path: root/conf.d/alsa/asoundrc.sample
diff options
context:
space:
mode:
authorfulup <fulup.arfoll@iot.bzh>2017-06-29 20:54:04 +0200
committerfulup <fulup.arfoll@iot.bzh>2017-06-29 20:54:04 +0200
commit21cd84156657e2f5be2115d90f3d4dbb50cc1509 (patch)
treea7733c875304fcf52ede07114962b926aabf84e3 /conf.d/alsa/asoundrc.sample
parent10c42e135b22bf323836100ede042ec47ddb22a1 (diff)
Added Alsa UCM samples
Diffstat (limited to 'conf.d/alsa/asoundrc.sample')
-rw-r--r--conf.d/alsa/asoundrc.sample72
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
+}