From 148c2b8e7c12b4ab8a039995fa9904e7e1300cc4 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Tue, 13 Sep 2005 10:36:16 +0000 Subject: [PATCH] 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 --- src/conf/cards/EMU10K1.conf | 67 +++++++++++++++++++++++++------------ 1 file changed, 45 insertions(+), 22 deletions(-) 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 -- 2.47.1