[alsa-devel] [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721 and Philips UDA1334 DAC
Is it feasible to remove "Center" , "LFE", "Wave Cetner" and "Wave LFE" Playback Volume control ?
or add a bitmap to disable the creation of those controls
Anyone know whether this patch has any side effect for the user with Live Drive
AFAIK, speaker-test will fail
speaker-test -d -c 6 -t wav -Dsurround51:1
speaker-test 1.0.24.2
Playback device is surround51:1 Stream parameters are 48000Hz, S16_LE, 6 channels WAV file(s) ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'Headphone Center Playback Switch',1,0,0): No such file or directory Playback open error: -2,No such file or directory
At Wed, 30 Mar 2011 20:50:51 +0800, Raymond Yau wrote:
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721 and Philips UDA1334 DAC
Is it feasible to remove "Center" , "LFE", "Wave Cetner" and "Wave LFE" Playback Volume control ?
or add a bitmap to disable the creation of those controls
Anyone know whether this patch has any side effect for the user with Live Drive
The side-effect is that opening surround51 would spew annoying error messages as you've seen. It should return an error without much complaint.
I'm not sure what is the best way to solve it. Defining another conf such as EMU10K1-4ch.conf would be an option, but it's not elegant...
thanks,
Takashi
AFAIK, speaker-test will fail
speaker-test -d -c 6 -t wav -Dsurround51:1
speaker-test 1.0.24.2
Playback device is surround51:1 Stream parameters are 48000Hz, S16_LE, 6 channels WAV file(s) ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'Headphone Center Playback Switch',1,0,0): No such file or directory Playback open error: -2,No such file or directory
2011/4/4 Takashi Iwai tiwai@suse.de
At Wed, 30 Mar 2011 20:50:51 +0800, Raymond Yau wrote:
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721
and
Philips UDA1334 DAC
Is it feasible to remove "Center" , "LFE", "Wave Cetner" and "Wave LFE" Playback Volume control ?
or add a bitmap to disable the creation of those controls
Anyone know whether this patch has any side effect for the user with
Live
Drive
The side-effect is that opening surround51 would spew annoying error messages as you've seen. It should return an error without much complaint.
I'm not sure what is the best way to solve it. Defining another conf such as EMU10K1-4ch.conf would be an option, but it's not elegant...
The side effect is not related to my patch but exout
#define EXTOUT_HEADPHONE_L 0x06 /* LiveDrive - Headphone - left */ #define EXTOUT_HEADPHONE_R 0x07 /* LiveDrive - Headphone - right */
I just follow Documentation/ALSA-Configuration.txt to set extout to 0x1f03 for my SB Live! Platinum without Live! Drive
Input & Output configurations [extin/extout]
* Creative Card wo/Digital out [0x0003/0x1f03] * Creative Card w/Digital out [0x0003/0x1f0f] * Creative Card w/Digital CD in [0x000f/0x1f0f] * Creative Card wo/Digital out + LiveDrive [0x3fc3/0x1fc3] * Creative Card w/Digital out + LiveDrive [0x3fc3/0x1fcf] * Creative Card w/Digital CD in + LiveDrive [0x3fcf/0x1fcf] * Creative Card wo/Digital out + Digital I/O 2 [0x0fc3/0x1f0f] * Creative Card w/Digital out + Digital I/O 2 [0x0fc3/0x1f0f] * Creative Card w/Digital CD in + Digital I/O 2 [0x0fcf/0x1f0f] * Creative Card 5.1/w Digital out + LiveDrive [0x3fc3/0x1fff] * Creative Card 5.1 (c) 2003 [0x3fc3/0x7cff] * Creative Card all ins and outs [0x3fff/0x7fff]
As Philips UDA1334 has no hardware volume control
The problem is pulseaudio expect the Front Channel and Rear Channels volume controls have same dB range
Card hw:1 'Live'/'SB Live! Platinum [CT4760P] (rev.7, serial:0x80401102) at 0xb880, irq 23' Mixer name : 'SigmaTel STAC9721,23' Components : 'AC97a:83847609' Controls : 198 Simple ctrls : 30 Simple mixer control 'Master',0 Capabilities: pvolume pswitch pswitch-joined penum Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 31 [100%] [0.00dB] [on] Front Right: Playback 31 [100%] [0.00dB] [on] Simple mixer control 'Tone',0 Capabilities: pswitch penum Playback channels: Front Left - Front Right Mono: Front Left: Playback [off] Front Right: Playback [off] Simple mixer control 'Bass',0 Capabilities: volume penum Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 40 Front Left: 21 [52%] Front Right: 21 [52%] Simple mixer control 'Treble',0 Capabilities: volume penum Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: 0 - 40 Front Left: 20 [50%] Front Right: 20 [50%] Simple mixer control '3D Control - Switch',0 Capabilities: pswitch pswitch-joined penum Playback channels: Mono Mono: Playback [off] Simple mixer control '3D Control Sigmatel - Depth',0 Capabilities: pvolume pvolume-joined penum Playback channels: Mono Limits: Playback 0 - 3 Mono: Playback 0 [0%] Simple mixer control 'PCM',0 Capabilities: pvolume pswitch pswitch-joined penum Playback channels: Front Left - Front Right Limits: Playback 0 - 31 Mono: Front Left: Playback 23 [74%] [0.00dB] [on] Front Right: Playback 23 [74%] [0.00dB] [on] Simple mixer control 'Front',0 Capabilities: cvolume cswitch cswitch-joined penum Capture channels: Front Left - Front Right Limits: Capture 0 - 2147483647 Front Left: Capture 0 [0%] [-99999.99dB] [off] Front Right: Capture 0 [0%] [-99999.99dB] [off] Simple mixer control 'Surround',0 Capabilities: pvolume cvolume cswitch penum Playback channels: Front Left - Front Right Capture channels: Front Left - Front Right Limits: Playback 0 - 2147483647 Capture 0 - 2147483647 Front Left: Playback 2147483647 [100%] [0.00dB] Capture 0 [0%] [-99999.99dB] [off] Front Right: Playback 2147483647 [100%] [0.00dB] Capture 0 [0%] [-99999.99dB] [off]
2011/4/4 Takashi Iwai tiwai@suse.de
At Wed, 30 Mar 2011 20:50:51 +0800, Raymond Yau wrote:
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721
and
Philips UDA1334 DAC
Is it feasible to remove "Center" , "LFE", "Wave Cetner" and "Wave LFE" Playback Volume control ?
or add a bitmap to disable the creation of those controls
Anyone know whether this patch has any side effect for the user with
Live
Drive
The side-effect is that opening surround51 would spew annoying error messages as you've seen. It should return an error without much complaint.
I'm not sure what is the best way to solve it. Defining another conf such as EMU10K1-4ch.conf would be an option, but it's not elegant...
thanks,
Takashi
AFAIK, speaker-test will fail
speaker-test -d -c 6 -t wav -Dsurround51:1
speaker-test 1.0.24.2
Playback device is surround51:1 Stream parameters are 48000Hz, S16_LE, 6 channels WAV file(s) ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'Headphone Center Playback Switch',1,0,0): No such file or
directory
Playback open error: -2,No such file or directory
The point is those 4.1 speakers for SB Live!, SB Live! Platinum and SB Live! Value only have green jack and blue jack, the signal of the Subwoofer is produced from the those jacks
it seem that the device "surround41" is only for SB Live! 5.1 in alsa
slave.channels 6 ttable.0.0 1 ttable.1.1 1 ttable.2.2 1 ttable.3.3 1 ttable.4.5 1 hint { description "4.1 Surround output to Front, Rear and Subwoofer speakers" device $DEV }
front:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback Front speakers rear:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback Rear speakers center_lfe:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback Center and Subwoofer speakers surround40:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback 4.0 Surround output to Front and Rear speakers surround41:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback 4.1 Surround output to Front, Rear and Subwoofer speakers surround50:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback 5.0 Surround output to Front, Center and Rear speakers surround51:CARD=Live,DEV=0 SB Live! Platinum [CT4760P], ADC Capture/Standard PCM Playback 5.1 Surround output to Front, Center, Rear and Subwoofer speakers
At Wed, 6 Apr 2011 10:15:21 +0800, Raymond Yau wrote:
2011/4/4 Takashi Iwai tiwai@suse.de
At Wed, 30 Mar 2011 20:50:51 +0800, Raymond Yau wrote:
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721
and
Philips UDA1334 DAC
Is it feasible to remove "Center" , "LFE", "Wave Cetner" and "Wave LFE" Playback Volume control ?
or add a bitmap to disable the creation of those controls
Anyone know whether this patch has any side effect for the user with
Live
Drive
The side-effect is that opening surround51 would spew annoying error messages as you've seen. It should return an error without much complaint.
I'm not sure what is the best way to solve it. Defining another conf such as EMU10K1-4ch.conf would be an option, but it's not elegant...
thanks,
Takashi
AFAIK, speaker-test will fail
speaker-test -d -c 6 -t wav -Dsurround51:1
speaker-test 1.0.24.2
Playback device is surround51:1 Stream parameters are 48000Hz, S16_LE, 6 channels WAV file(s) ALSA lib setup.c:565:(add_elem) Cannot obtain info for CTL elem (MIXER,'Headphone Center Playback Switch',1,0,0): No such file or
directory
Playback open error: -2,No such file or directory
The point is those 4.1 speakers for SB Live!, SB Live! Platinum and SB Live! Value only have green jack and blue jack, the signal of the Subwoofer is produced from the those jacks
it seem that the device "surround41" is only for SB Live! 5.1 in alsa
slave.channels 6 ttable.0.0 1 ttable.1.1 1 ttable.2.2 1 ttable.3.3 1 ttable.4.5 1 hint { description "4.1 Surround output to Front, Rear and Subwoofer
speakers" device $DEV }
OK, I overlooked that the problematic controls are "Headphone XXX". These should be marked as optional in the card config. I fixed this now.
Meanwhile, as no obvious problem is found in your patch, I applied it now.
thanks,
Takashi
participants (2)
-
Raymond Yau
-
Takashi Iwai