ALSA: emu10k1 - Remove CLFE-related controls for SB Live! Platinum CT4760P
authorRaymond Yau <superquad.vortex2@gmail.com>
Wed, 30 Mar 2011 12:00:39 +0000 (20:00 +0800)
committerTakashi Iwai <tiwai@suse.de>
Wed, 6 Apr 2011 06:31:26 +0000 (08:31 +0200)
SB Live! Platinum CT4760P is just a 4 channels sound card with STAC9721 and
Philips UDA1334 DAC.

Signed-off-by: Raymond Yau <superquad.vortex2@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/emu10k1/emumixer.c

index 05afe06e353ae0b37c8ba36bea67345d430b7b5b..1b50a23232b58adc810d4c16cc609aee66254857 100644 (file)
@@ -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");