From: Mikael Magnusson Date: Tue, 13 Sep 2005 10:36:16 +0000 (+0000) Subject: emu10k1: Front channels via fxbus 8 and 9 X-Git-Tag: v1.0.10rc2~10 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=148c2b8e7c12b4ab8a039995fa9904e7e1300cc4;p=alsa-lib.git emu10k1: Front channels via fxbus 8 and 9 Routes front channels via fxbus 8 and 9 instead of fxbus 0 and 1. This makes the front and default devices independent of each other, and "Wave Surround", "Wave Center" and "Wave LFE" don't have to be muted during 5.1 playback. Signed-off-by: Mikael Magnusson --- diff --git a/src/conf/cards/EMU10K1.conf b/src/conf/cards/EMU10K1.conf index 2596a59f..589c5d4a 100644 --- a/src/conf/cards/EMU10K1.conf +++ b/src/conf/cards/EMU10K1.conf @@ -9,9 +9,51 @@ EMU10K1.pcm.front.0 { @args.CARD { type string } - type hw - card $CARD - device 0 + type hooks + slave.pcm { + type hw + card $CARD + device 0 + } + hooks.0 { + type ctl_elems + hook_args [ + { + interface PCM + device 0 + name "EMU10K1 PCM Send Volume" + index { @func private_pcm_subdevice } + lock true + optional true + value [ 255 255 0 0 255 0 0 0 0 255 0 0 ] + } + { + # for compatibility with older drivers + name "EMU10K1 PCM Send Volume" + index { @func private_pcm_subdevice } + lock true + optional true + value [ 255 255 0 0 255 0 0 0 0 255 0 0 ] + } + { + interface PCM + device 0 + name "EMU10K1 PCM Send Routing" + index { @func private_pcm_subdevice } + lock true + optional true + value [ 8 9 0 0 8 9 0 0 8 9 0 0 ] + } + { + # for compatibility with older drivers + name "EMU10K1 PCM Send Routing" + index { @func private_pcm_subdevice } + lock true + optional true + value [ 8 9 0 0 8 9 0 0 8 9 0 0 ] + } + ] + } } @@ -30,13 +72,6 @@ EMU10K1.pcm.rear.0 { hooks.0 { type ctl_elems hook_args [ - { - name "Wave Surround Playback Volume" - preserve true - # don't lock a global control - # lock true - value [ 0 0 ] - } { interface PCM device 0 @@ -74,18 +109,6 @@ EMU10K1.pcm.center_lfe.0 { hooks.0 { type ctl_elems hook_args [ - { - name "Wave Center Playback Volume" - preserve true - # lock true - value 0 - } - { - name "Wave LFE Playback Volume" - preserve true - # lock true - value 0 - } { name "Headphone Center Playback Switch" index 1