aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci
diff options
context:
space:
mode:
authorHerton Ronaldo Krzesinski <herton@mandriva.com>2007-12-19 11:49:02 -0500
committerJaroslav Kysela <perex@perex.cz>2008-01-31 11:29:43 -0500
commit6e7939bb4de289d4e5176b08f1d00e42e0a07d77 (patch)
treed1ef6cbdd8d6f6db98acf487edb51dfb6a1b2d7a /sound/pci
parentaa9673cf31c7daca42a9713c8aa604bce280e85d (diff)
[ALSA] hda-codec - Fix capture mixers of ALC662 models
The commit that added support for ASUS P701 eeepc also changed the mixers of other ALC662 models, duplicating entries for the Capture items, making them to not work anymore. This fixes it by removing duplicated entries using where possible the common alc662_capture_mixer. Also alc662_capture_mixer should use alc662* functions and not alc882 (I checked /proc/asound/card0/codec* on an eepc model and it's ok). Signed-off-by: Herton Ronaldo Krzesinski <herton@mandriva.com> Signed-off-by: Takashi Iwai <tiwai@suse.de> Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Diffstat (limited to 'sound/pci')
-rw-r--r--sound/pci/hda/patch_realtek.c51
1 files changed, 3 insertions, 48 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index c251974fdcc7..a9d7fe9ac6f1 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -12335,18 +12335,6 @@ static struct snd_kcontrol_new alc662_base_mixer[] = {
12335 HDA_CODEC_MUTE("Mic Playback Switch", 0xb, 0x0, HDA_INPUT), 12335 HDA_CODEC_MUTE("Mic Playback Switch", 0xb, 0x0, HDA_INPUT),
12336 HDA_CODEC_VOLUME("Front Mic Playback Volume", 0xb, 0x01, HDA_INPUT), 12336 HDA_CODEC_VOLUME("Front Mic Playback Volume", 0xb, 0x01, HDA_INPUT),
12337 HDA_CODEC_MUTE("Front Mic Playback Switch", 0xb, 0x01, HDA_INPUT), 12337 HDA_CODEC_MUTE("Front Mic Playback Switch", 0xb, 0x01, HDA_INPUT),
12338
12339 /* Capture mixer control */
12340 HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT),
12341 HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT),
12342 {
12343 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12344 .name = "Capture Source",
12345 .count = 1,
12346 .info = alc_mux_enum_info,
12347 .get = alc_mux_enum_get,
12348 .put = alc_mux_enum_put,
12349 },
12350 { } /* end */ 12338 { } /* end */
12351}; 12339};
12352 12340
@@ -12364,17 +12352,6 @@ static struct snd_kcontrol_new alc662_3ST_2ch_mixer[] = {
12364 HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), 12352 HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT),
12365 HDA_CODEC_VOLUME("PC Speaker Playback Volume", 0x0b, 0x05, HDA_INPUT), 12353 HDA_CODEC_VOLUME("PC Speaker Playback Volume", 0x0b, 0x05, HDA_INPUT),
12366 HDA_CODEC_MUTE("PC Speaker Playback Switch", 0x0b, 0x05, HDA_INPUT), 12354 HDA_CODEC_MUTE("PC Speaker Playback Switch", 0x0b, 0x05, HDA_INPUT),
12367 HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT),
12368 HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT),
12369 {
12370 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12371 /* .name = "Capture Source", */
12372 .name = "Input Source",
12373 .count = 1,
12374 .info = alc662_mux_enum_info,
12375 .get = alc662_mux_enum_get,
12376 .put = alc662_mux_enum_put,
12377 },
12378 { } /* end */ 12355 { } /* end */
12379}; 12356};
12380 12357
@@ -12398,17 +12375,6 @@ static struct snd_kcontrol_new alc662_3ST_6ch_mixer[] = {
12398 HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), 12375 HDA_CODEC_MUTE("Front Mic Playback Switch", 0x0b, 0x1, HDA_INPUT),
12399 HDA_CODEC_VOLUME("PC Speaker Playback Volume", 0x0b, 0x05, HDA_INPUT), 12376 HDA_CODEC_VOLUME("PC Speaker Playback Volume", 0x0b, 0x05, HDA_INPUT),
12400 HDA_CODEC_MUTE("PC Speaker Playback Switch", 0x0b, 0x05, HDA_INPUT), 12377 HDA_CODEC_MUTE("PC Speaker Playback Switch", 0x0b, 0x05, HDA_INPUT),
12401 HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT),
12402 HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT),
12403 {
12404 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12405 /* .name = "Capture Source", */
12406 .name = "Input Source",
12407 .count = 1,
12408 .info = alc662_mux_enum_info,
12409 .get = alc662_mux_enum_get,
12410 .put = alc662_mux_enum_put,
12411 },
12412 { } /* end */ 12378 { } /* end */
12413}; 12379};
12414 12380
@@ -12422,17 +12388,6 @@ static struct snd_kcontrol_new alc662_lenovo_101e_mixer[] = {
12422 HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT), 12388 HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT),
12423 HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x1, HDA_INPUT), 12389 HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x1, HDA_INPUT),
12424 HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), 12390 HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x1, HDA_INPUT),
12425 HDA_CODEC_VOLUME("Capture Volume", 0x09, 0x0, HDA_INPUT),
12426 HDA_CODEC_MUTE("Capture Switch", 0x09, 0x0, HDA_INPUT),
12427 {
12428 .iface = SNDRV_CTL_ELEM_IFACE_MIXER,
12429 /* .name = "Capture Source", */
12430 .name = "Input Source",
12431 .count = 1,
12432 .info = alc662_mux_enum_info,
12433 .get = alc662_mux_enum_get,
12434 .put = alc662_mux_enum_put,
12435 },
12436 { } /* end */ 12391 { } /* end */
12437}; 12392};
12438 12393
@@ -12598,9 +12553,9 @@ static struct snd_kcontrol_new alc662_capture_mixer[] = {
12598 /* .name = "Capture Source", */ 12553 /* .name = "Capture Source", */
12599 .name = "Input Source", 12554 .name = "Input Source",
12600 .count = 1, 12555 .count = 1,
12601 .info = alc882_mux_enum_info, 12556 .info = alc662_mux_enum_info,
12602 .get = alc882_mux_enum_get, 12557 .get = alc662_mux_enum_get,
12603 .put = alc882_mux_enum_put, 12558 .put = alc662_mux_enum_put,
12604 }, 12559 },
12605 { } /* end */ 12560 { } /* end */
12606}; 12561};