* [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
@ 2011-03-30 12:50 Raymond Yau
2011-04-04 11:06 ` Takashi Iwai
0 siblings, 1 reply; 5+ messages in thread
From: Raymond Yau @ 2011-03-30 12:50 UTC (permalink / raw)
To: ALSA Development Mailing List
[-- Attachment #1: Type: text/plain, Size: 719 bytes --]
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
[-- Attachment #2: Patch-ALSA-EMU10K1-Remove-Center-LFE-Wave-Center-and-Wave-LFE.patch --]
[-- Type: application/octet-stream, Size: 1174 bytes --]
From 3cc13e0b2aafa9c7c2b27f4523d9e4ab40ab7da7 Mon Sep 17 00:00:00 2001
From: Raymond Yau <superquad.vortex2@gmail.com>
Date: Wed, 30 Mar 2011 20:00:39 +0800
Subject: [[RFC PATCH] 3/3] [RFC Patch] - Remove Center , LFE , Wave Center and Wave LFE control for SB Live! Platinum CT4760P
Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c
index 05afe06..1b50a23 100644
--- a/sound/pci/emu10k1/emumixer.c
+++ b/sound/pci/emu10k1/emumixer.c
@@ -1913,6 +1913,12 @@ int __devinit snd_emu10k1_mixer(struct snd_emu10k1 *emu,
for (; *c; c += 2)
rename_ctl(card, c[0], c[1]);
+ if (emu->card_capabilities->subsystem == 0x80401102) { /* SB Live! Platinum CT4760P */
+ remove_ctl(card, "Center Playback Volume");
+ remove_ctl(card, "LFE Playback Volume");
+ remove_ctl(card, "Wave Center Playback Volume");
+ remove_ctl(card, "Wave LFE Playback Volume");
+ }
if (emu->card_capabilities->subsystem == 0x20071102) { /* Audigy 4 Pro */
rename_ctl(card, "Line2 Capture Volume", "Line1/Mic Capture Volume");
rename_ctl(card, "Analog Mix Capture Volume", "Line2 Capture Volume");
--
1.6.0.6
[-- Attachment #3: Type: text/plain, Size: 160 bytes --]
_______________________________________________
Alsa-devel mailing list
Alsa-devel@alsa-project.org
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
^ permalink raw reply related [flat|nested] 5+ messages in thread
* Re: [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
2011-03-30 12:50 [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum Raymond Yau
@ 2011-04-04 11:06 ` Takashi Iwai
2011-04-05 9:44 ` Raymond Yau
2011-04-06 2:15 ` Raymond Yau
0 siblings, 2 replies; 5+ messages in thread
From: Takashi Iwai @ 2011-04-04 11:06 UTC (permalink / raw)
To: Raymond Yau; +Cc: ALSA Development Mailing List
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
2011-04-04 11:06 ` Takashi Iwai
@ 2011-04-05 9:44 ` Raymond Yau
2011-04-06 2:15 ` Raymond Yau
1 sibling, 0 replies; 5+ messages in thread
From: Raymond Yau @ 2011-04-05 9:44 UTC (permalink / raw)
To: ALSA Development Mailing List
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]
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
2011-04-04 11:06 ` Takashi Iwai
2011-04-05 9:44 ` Raymond Yau
@ 2011-04-06 2:15 ` Raymond Yau
2011-04-06 6:38 ` Takashi Iwai
1 sibling, 1 reply; 5+ messages in thread
From: Raymond Yau @ 2011-04-06 2:15 UTC (permalink / raw)
To: Takashi Iwai, ALSA Development Mailing List
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
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum
2011-04-06 2:15 ` Raymond Yau
@ 2011-04-06 6:38 ` Takashi Iwai
0 siblings, 0 replies; 5+ messages in thread
From: Takashi Iwai @ 2011-04-06 6:38 UTC (permalink / raw)
To: Raymond Yau; +Cc: ALSA Development Mailing List
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
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2011-04-06 6:38 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-03-30 12:50 [RFC Patch] ALSA - EMU10K1 - Remove Center LFE Wave Center and Wave LFE control for SB Live! Platinum Raymond Yau
2011-04-04 11:06 ` Takashi Iwai
2011-04-05 9:44 ` Raymond Yau
2011-04-06 2:15 ` Raymond Yau
2011-04-06 6:38 ` Takashi Iwai
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).