From 21cd84156657e2f5be2115d90f3d4dbb50cc1509 Mon Sep 17 00:00:00 2001 From: fulup Date: Thu, 29 Jun 2017 20:54:04 +0200 Subject: Added Alsa UCM samples --- conf.d/alsa/asoundrc.sample | 72 +++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) create mode 100644 conf.d/alsa/asoundrc.sample (limited to 'conf.d/alsa/asoundrc.sample') 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 +} -- cgit 1.2.3-korg