aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/emu10k1
diff options
context:
space:
mode:
authorMaciej S. Szmigiero <mail@maciej.szmigiero.name>2015-07-07 15:52:24 -0400
committerTakashi Iwai <tiwai@suse.de>2015-07-08 03:40:12 -0400
commit274b2000a09220bb2b930af432a2262db7063bd9 (patch)
treed71718353e12f8b1d4597e6ff5dc991cc3d9208f /sound/pci/emu10k1
parentd1f15e06b2af57228d11e33e06a172ff58f5bc1c (diff)
ALSA: emu10k1: remove unused AC'97 mixer controls on Audigy
AC'97 Headphone output and EAPD control aren't used on Audigy so remove them from mixer. Also remove AC'97 3D control as the driver is already doing for Audigys with 1361T ADC. Signed-off-by: Maciej Szmigiero <mail@maciej.szmigiero.name> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/emu10k1')
-rw-r--r--sound/pci/emu10k1/emumixer.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/pci/emu10k1/emumixer.c b/sound/pci/emu10k1/emumixer.c
index 55e57166256e..f1cb7b37c8ec 100644
--- a/sound/pci/emu10k1/emumixer.c
+++ b/sound/pci/emu10k1/emumixer.c
@@ -1830,10 +1830,16 @@ int snd_emu10k1_mixer(struct snd_emu10k1 *emu,
1830 "Capture Switch", 1830 "Capture Switch",
1831 "Capture Volume", 1831 "Capture Volume",
1832 "Mic Select", 1832 "Mic Select",
1833 "Headphone Playback Switch",
1834 "Headphone Playback Volume",
1835 "3D Control - Center",
1836 "3D Control - Depth",
1837 "3D Control - Switch",
1833 "Video Playback Switch", 1838 "Video Playback Switch",
1834 "Video Playback Volume", 1839 "Video Playback Volume",
1835 "Mic Playback Switch", 1840 "Mic Playback Switch",
1836 "Mic Playback Volume", 1841 "Mic Playback Volume",
1842 "External Amplifier",
1837 NULL 1843 NULL
1838 }; 1844 };
1839 static char *audigy_rename_ctls[] = { 1845 static char *audigy_rename_ctls[] = {
@@ -1996,11 +2002,6 @@ int snd_emu10k1_mixer(struct snd_emu10k1 *emu,
1996 rename_ctl(card, "Analog Mix Capture Volume", "Line2 Capture Volume"); 2002 rename_ctl(card, "Analog Mix Capture Volume", "Line2 Capture Volume");
1997 rename_ctl(card, "Aux2 Capture Volume", "Line3 Capture Volume"); 2003 rename_ctl(card, "Aux2 Capture Volume", "Line3 Capture Volume");
1998 rename_ctl(card, "Mic Capture Volume", "Unknown1 Capture Volume"); 2004 rename_ctl(card, "Mic Capture Volume", "Unknown1 Capture Volume");
1999 remove_ctl(card, "Headphone Playback Switch");
2000 remove_ctl(card, "Headphone Playback Volume");
2001 remove_ctl(card, "3D Control - Center");
2002 remove_ctl(card, "3D Control - Depth");
2003 remove_ctl(card, "3D Control - Switch");
2004 } 2005 }
2005 if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL) 2006 if ((kctl = emu->ctl_send_routing = snd_ctl_new1(&snd_emu10k1_send_routing_control, emu)) == NULL)
2006 return -ENOMEM; 2007 return -ENOMEM;