alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [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

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).