diff options
author | Takashi Iwai <tiwai@suse.de> | 2011-08-24 04:43:36 -0400 |
---|---|---|
committer | Takashi Iwai <tiwai@suse.de> | 2011-08-24 04:43:36 -0400 |
commit | 5e8e1a9b05ccad82ac48cf63c8f96ff42f53f561 (patch) | |
tree | edba98465c3a74a4a7d9c578a15bab23ce943d6c | |
parent | a4297b5db0da0122d932969caf1108e3442c677e (diff) |
ALSA: hda - Remove ALC662 ASUS M51VA, G71V, H13 and G50V model quirks
These models work now with the BIOS auto-parser, so let's drop them.
Signed-off-by: Takashi Iwai <tiwai@suse.de>
-rw-r--r-- | Documentation/sound/alsa/HD-Audio-Models.txt | 4 | ||||
-rw-r--r-- | sound/pci/hda/alc662_quirks.c | 195 |
2 files changed, 0 insertions, 199 deletions
diff --git a/Documentation/sound/alsa/HD-Audio-Models.txt b/Documentation/sound/alsa/HD-Audio-Models.txt index fbec67f29a1a..57e80eb78d72 100644 --- a/Documentation/sound/alsa/HD-Audio-Models.txt +++ b/Documentation/sound/alsa/HD-Audio-Models.txt | |||
@@ -72,10 +72,6 @@ ALC662/663/272 | |||
72 | 3stack-6ch-dig 3-stack (6-channel) with SPDIF | 72 | 3stack-6ch-dig 3-stack (6-channel) with SPDIF |
73 | 5stack-dig 5-stack with SPDIF | 73 | 5stack-dig 5-stack with SPDIF |
74 | eeepc-ep20 ASUS Eeepc EP20 | 74 | eeepc-ep20 ASUS Eeepc EP20 |
75 | m51va ASUS M51VA | ||
76 | g71v ASUS G71V | ||
77 | h13 ASUS H13 | ||
78 | g50v ASUS G50V | ||
79 | asus-mode1 ASUS | 75 | asus-mode1 ASUS |
80 | asus-mode2 ASUS | 76 | asus-mode2 ASUS |
81 | asus-mode3 ASUS | 77 | asus-mode3 ASUS |
diff --git a/sound/pci/hda/alc662_quirks.c b/sound/pci/hda/alc662_quirks.c index f5b4c9d883e8..ce342b9560ee 100644 --- a/sound/pci/hda/alc662_quirks.c +++ b/sound/pci/hda/alc662_quirks.c | |||
@@ -11,10 +11,6 @@ enum { | |||
11 | ALC662_3ST_6ch, | 11 | ALC662_3ST_6ch, |
12 | ALC662_5ST_DIG, | 12 | ALC662_5ST_DIG, |
13 | ALC662_ASUS_EEEPC_EP20, | 13 | ALC662_ASUS_EEEPC_EP20, |
14 | ALC663_ASUS_M51VA, | ||
15 | ALC663_ASUS_G71V, | ||
16 | ALC663_ASUS_H13, | ||
17 | ALC663_ASUS_G50V, | ||
18 | ALC662_MODEL_LAST, | 14 | ALC662_MODEL_LAST, |
19 | }; | 15 | }; |
20 | 16 | ||
@@ -212,60 +208,6 @@ static const struct snd_kcontrol_new alc662_eeepc_ep20_mixer[] = { | |||
212 | { } /* end */ | 208 | { } /* end */ |
213 | }; | 209 | }; |
214 | 210 | ||
215 | static const struct hda_bind_ctls alc663_asus_bind_master_vol = { | ||
216 | .ops = &snd_hda_bind_vol, | ||
217 | .values = { | ||
218 | HDA_COMPOSE_AMP_VAL(0x02, 3, 0, HDA_OUTPUT), | ||
219 | HDA_COMPOSE_AMP_VAL(0x03, 3, 0, HDA_OUTPUT), | ||
220 | 0 | ||
221 | }, | ||
222 | }; | ||
223 | |||
224 | static const struct hda_bind_ctls alc663_asus_one_bind_switch = { | ||
225 | .ops = &snd_hda_bind_sw, | ||
226 | .values = { | ||
227 | HDA_COMPOSE_AMP_VAL(0x14, 3, 0, HDA_OUTPUT), | ||
228 | HDA_COMPOSE_AMP_VAL(0x21, 3, 0, HDA_OUTPUT), | ||
229 | 0 | ||
230 | }, | ||
231 | }; | ||
232 | |||
233 | static const struct snd_kcontrol_new alc663_m51va_mixer[] = { | ||
234 | HDA_BIND_VOL("Master Playback Volume", &alc663_asus_bind_master_vol), | ||
235 | HDA_BIND_SW("Master Playback Switch", &alc663_asus_one_bind_switch), | ||
236 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
237 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
238 | { } /* end */ | ||
239 | }; | ||
240 | |||
241 | static const struct snd_kcontrol_new alc663_g71v_mixer[] = { | ||
242 | HDA_CODEC_VOLUME("Speaker Playback Volume", 0x02, 0x0, HDA_OUTPUT), | ||
243 | HDA_CODEC_MUTE("Speaker Playback Switch", 0x14, 0x0, HDA_OUTPUT), | ||
244 | HDA_CODEC_VOLUME("Front Playback Volume", 0x03, 0x0, HDA_OUTPUT), | ||
245 | HDA_CODEC_MUTE("Front Playback Switch", 0x15, 0x0, HDA_OUTPUT), | ||
246 | HDA_CODEC_MUTE("Headphone Playback Switch", 0x21, 0x0, HDA_OUTPUT), | ||
247 | |||
248 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
249 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
250 | HDA_CODEC_VOLUME("Internal Mic Playback Volume", 0x0b, 0x1, HDA_INPUT), | ||
251 | HDA_CODEC_MUTE("Internal Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), | ||
252 | { } /* end */ | ||
253 | }; | ||
254 | |||
255 | static const struct snd_kcontrol_new alc663_g50v_mixer[] = { | ||
256 | HDA_CODEC_VOLUME("Speaker Playback Volume", 0x02, 0x0, HDA_OUTPUT), | ||
257 | HDA_CODEC_MUTE("Speaker Playback Switch", 0x14, 0x0, HDA_OUTPUT), | ||
258 | HDA_CODEC_MUTE("Headphone Playback Switch", 0x21, 0x0, HDA_OUTPUT), | ||
259 | |||
260 | HDA_CODEC_VOLUME("Mic Playback Volume", 0x0b, 0x0, HDA_INPUT), | ||
261 | HDA_CODEC_MUTE("Mic Playback Switch", 0x0b, 0x0, HDA_INPUT), | ||
262 | HDA_CODEC_VOLUME("Internal Mic Playback Volume", 0x0b, 0x1, HDA_INPUT), | ||
263 | HDA_CODEC_MUTE("Internal Mic Playback Switch", 0x0b, 0x1, HDA_INPUT), | ||
264 | HDA_CODEC_VOLUME("Line Playback Volume", 0x0b, 0x02, HDA_INPUT), | ||
265 | HDA_CODEC_MUTE("Line Playback Switch", 0x0b, 0x02, HDA_INPUT), | ||
266 | { } /* end */ | ||
267 | }; | ||
268 | |||
269 | static const struct snd_kcontrol_new alc662_chmode_mixer[] = { | 211 | static const struct snd_kcontrol_new alc662_chmode_mixer[] = { |
270 | { | 212 | { |
271 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, | 213 | .iface = SNDRV_CTL_ELEM_IFACE_MIXER, |
@@ -340,44 +282,6 @@ static const struct hda_verb alc662_eeepc_ep20_sue_init_verbs[] = { | |||
340 | {} | 282 | {} |
341 | }; | 283 | }; |
342 | 284 | ||
343 | static const struct hda_verb alc663_m51va_init_verbs[] = { | ||
344 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
345 | {0x16, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_IN}, | ||
346 | {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
347 | {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
348 | {0x21, AC_VERB_SET_CONNECT_SEL, 0x01}, /* Headphone */ | ||
349 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_MUTE(0)}, | ||
350 | {0x22, AC_VERB_SET_AMP_GAIN_MUTE, AMP_IN_UNMUTE(9)}, | ||
351 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_MIC_EVENT}, | ||
352 | {0x21, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_HP_EVENT}, | ||
353 | {} | ||
354 | }; | ||
355 | |||
356 | static const struct hda_verb alc663_g71v_init_verbs[] = { | ||
357 | {0x15, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
358 | /* {0x15, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, */ | ||
359 | /* {0x15, AC_VERB_SET_CONNECT_SEL, 0x01}, */ /* Headphone */ | ||
360 | |||
361 | {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
362 | {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
363 | {0x21, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Headphone */ | ||
364 | |||
365 | {0x15, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC_FRONT_EVENT}, | ||
366 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC_MIC_EVENT}, | ||
367 | {0x21, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN|ALC_HP_EVENT}, | ||
368 | {} | ||
369 | }; | ||
370 | |||
371 | static const struct hda_verb alc663_g50v_init_verbs[] = { | ||
372 | {0x21, AC_VERB_SET_PIN_WIDGET_CONTROL, PIN_HP}, | ||
373 | {0x21, AC_VERB_SET_AMP_GAIN_MUTE, AMP_OUT_UNMUTE}, | ||
374 | {0x21, AC_VERB_SET_CONNECT_SEL, 0x00}, /* Headphone */ | ||
375 | |||
376 | {0x18, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_MIC_EVENT}, | ||
377 | {0x21, AC_VERB_SET_UNSOLICITED_ENABLE, AC_USRSP_EN | ALC_HP_EVENT}, | ||
378 | {} | ||
379 | }; | ||
380 | |||
381 | static void alc662_eeepc_ep20_setup(struct hda_codec *codec) | 285 | static void alc662_eeepc_ep20_setup(struct hda_codec *codec) |
382 | { | 286 | { |
383 | struct alc_spec *spec = codec->spec; | 287 | struct alc_spec *spec = codec->spec; |
@@ -388,36 +292,6 @@ static void alc662_eeepc_ep20_setup(struct hda_codec *codec) | |||
388 | spec->automute_mode = ALC_AUTOMUTE_AMP; | 292 | spec->automute_mode = ALC_AUTOMUTE_AMP; |
389 | } | 293 | } |
390 | 294 | ||
391 | static void alc663_m51va_setup(struct hda_codec *codec) | ||
392 | { | ||
393 | struct alc_spec *spec = codec->spec; | ||
394 | spec->autocfg.hp_pins[0] = 0x21; | ||
395 | spec->autocfg.speaker_pins[0] = 0x14; | ||
396 | spec->automute_mixer_nid[0] = 0x0c; | ||
397 | spec->automute = 1; | ||
398 | spec->automute_mode = ALC_AUTOMUTE_MIXER; | ||
399 | spec->ext_mic_pin = 0x18; | ||
400 | spec->int_mic_pin = 0x12; | ||
401 | spec->auto_mic = 1; | ||
402 | } | ||
403 | |||
404 | static void alc663_g71v_setup(struct hda_codec *codec) | ||
405 | { | ||
406 | struct alc_spec *spec = codec->spec; | ||
407 | spec->autocfg.hp_pins[0] = 0x21; | ||
408 | spec->autocfg.line_out_pins[0] = 0x15; | ||
409 | spec->autocfg.speaker_pins[0] = 0x14; | ||
410 | spec->automute = 1; | ||
411 | spec->automute_mode = ALC_AUTOMUTE_AMP; | ||
412 | spec->detect_line = 1; | ||
413 | spec->automute_lines = 1; | ||
414 | spec->ext_mic_pin = 0x18; | ||
415 | spec->int_mic_pin = 0x12; | ||
416 | spec->auto_mic = 1; | ||
417 | } | ||
418 | |||
419 | #define alc663_g50v_setup alc663_m51va_setup | ||
420 | |||
421 | /* | 295 | /* |
422 | * configuration and preset | 296 | * configuration and preset |
423 | */ | 297 | */ |
@@ -427,32 +301,19 @@ static const char * const alc662_models[ALC662_MODEL_LAST] = { | |||
427 | [ALC662_3ST_6ch] = "3stack-6ch", | 301 | [ALC662_3ST_6ch] = "3stack-6ch", |
428 | [ALC662_5ST_DIG] = "5stack-dig", | 302 | [ALC662_5ST_DIG] = "5stack-dig", |
429 | [ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20", | 303 | [ALC662_ASUS_EEEPC_EP20] = "eeepc-ep20", |
430 | [ALC663_ASUS_M51VA] = "m51va", | ||
431 | [ALC663_ASUS_G71V] = "g71v", | ||
432 | [ALC663_ASUS_H13] = "h13", | ||
433 | [ALC663_ASUS_G50V] = "g50v", | ||
434 | [ALC662_AUTO] = "auto", | 304 | [ALC662_AUTO] = "auto", |
435 | }; | 305 | }; |
436 | 306 | ||
437 | static const struct snd_pci_quirk alc662_cfg_tbl[] = { | 307 | static const struct snd_pci_quirk alc662_cfg_tbl[] = { |
438 | SND_PCI_QUIRK(0x1043, 0x17c3, "ASUS UX20", ALC663_ASUS_M51VA), | ||
439 | SND_PCI_QUIRK(0x1043, 0x1878, "ASUS M51VA", ALC663_ASUS_M51VA), | ||
440 | SND_PCI_QUIRK(0x1043, 0x19a3, "ASUS G50V", ALC663_ASUS_G50V), | ||
441 | SND_PCI_QUIRK(0x1043, 0x19d3, "ASUS NB", ALC663_ASUS_M51VA), | ||
442 | SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG), | 308 | SND_PCI_QUIRK(0x1043, 0x8290, "ASUS P5GC-MX", ALC662_3ST_6ch_DIG), |
443 | SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20), | 309 | SND_PCI_QUIRK(0x1043, 0x82d1, "ASUS Eeepc EP20", ALC662_ASUS_EEEPC_EP20), |
444 | SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K", | 310 | SND_PCI_QUIRK(0x105b, 0x0d47, "Foxconn 45CMX/45GMX/45CMX-K", |
445 | ALC662_3ST_6ch_DIG), | 311 | ALC662_3ST_6ch_DIG), |
446 | SND_PCI_QUIRK(0x1179, 0xff6e, "Toshiba NB20x", ALC662_AUTO), | ||
447 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte 945GCM-S2L", | 312 | SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte 945GCM-S2L", |
448 | ALC662_3ST_6ch_DIG), | 313 | ALC662_3ST_6ch_DIG), |
449 | SND_PCI_QUIRK(0x152d, 0x2304, "Quanta WH1", ALC663_ASUS_H13), | ||
450 | SND_PCI_QUIRK(0x1565, 0x820f, "Biostar TA780G M2+", ALC662_3ST_6ch_DIG), | 314 | SND_PCI_QUIRK(0x1565, 0x820f, "Biostar TA780G M2+", ALC662_3ST_6ch_DIG), |
451 | SND_PCI_QUIRK(0x1631, 0xc10c, "PB RS65", ALC663_ASUS_M51VA), | ||
452 | SND_PCI_QUIRK(0x1849, 0x3662, "ASROCK K10N78FullHD-hSLI R3.0", | 315 | SND_PCI_QUIRK(0x1849, 0x3662, "ASROCK K10N78FullHD-hSLI R3.0", |
453 | ALC662_3ST_6ch_DIG), | 316 | ALC662_3ST_6ch_DIG), |
454 | SND_PCI_QUIRK_MASK(0x1854, 0xf000, 0x2000, "ASUS H13-200x", | ||
455 | ALC663_ASUS_H13), | ||
456 | {} | 317 | {} |
457 | }; | 318 | }; |
458 | 319 | ||
@@ -516,60 +377,4 @@ static const struct alc_config_preset alc662_presets[] = { | |||
516 | .setup = alc662_eeepc_ep20_setup, | 377 | .setup = alc662_eeepc_ep20_setup, |
517 | .init_hook = alc_inithook, | 378 | .init_hook = alc_inithook, |
518 | }, | 379 | }, |
519 | [ALC663_ASUS_M51VA] = { | ||
520 | .mixers = { alc663_m51va_mixer }, | ||
521 | .init_verbs = { alc662_init_verbs, | ||
522 | alc662_eapd_init_verbs, | ||
523 | alc663_m51va_init_verbs }, | ||
524 | .num_dacs = ARRAY_SIZE(alc662_dac_nids), | ||
525 | .dac_nids = alc662_dac_nids, | ||
526 | .dig_out_nid = ALC662_DIGOUT_NID, | ||
527 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), | ||
528 | .channel_mode = alc662_3ST_2ch_modes, | ||
529 | .unsol_event = alc_sku_unsol_event, | ||
530 | .setup = alc663_m51va_setup, | ||
531 | .init_hook = alc_inithook, | ||
532 | }, | ||
533 | [ALC663_ASUS_G71V] = { | ||
534 | .mixers = { alc663_g71v_mixer }, | ||
535 | .init_verbs = { alc662_init_verbs, | ||
536 | alc662_eapd_init_verbs, | ||
537 | alc663_g71v_init_verbs }, | ||
538 | .num_dacs = ARRAY_SIZE(alc662_dac_nids), | ||
539 | .dac_nids = alc662_dac_nids, | ||
540 | .dig_out_nid = ALC662_DIGOUT_NID, | ||
541 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), | ||
542 | .channel_mode = alc662_3ST_2ch_modes, | ||
543 | .unsol_event = alc_sku_unsol_event, | ||
544 | .setup = alc663_g71v_setup, | ||
545 | .init_hook = alc_inithook, | ||
546 | }, | ||
547 | [ALC663_ASUS_H13] = { | ||
548 | .mixers = { alc663_m51va_mixer }, | ||
549 | .init_verbs = { alc662_init_verbs, | ||
550 | alc662_eapd_init_verbs, | ||
551 | alc663_m51va_init_verbs }, | ||
552 | .num_dacs = ARRAY_SIZE(alc662_dac_nids), | ||
553 | .dac_nids = alc662_dac_nids, | ||
554 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_2ch_modes), | ||
555 | .channel_mode = alc662_3ST_2ch_modes, | ||
556 | .setup = alc663_m51va_setup, | ||
557 | .unsol_event = alc_sku_unsol_event, | ||
558 | .init_hook = alc_inithook, | ||
559 | }, | ||
560 | [ALC663_ASUS_G50V] = { | ||
561 | .mixers = { alc663_g50v_mixer }, | ||
562 | .init_verbs = { alc662_init_verbs, | ||
563 | alc662_eapd_init_verbs, | ||
564 | alc663_g50v_init_verbs }, | ||
565 | .num_dacs = ARRAY_SIZE(alc662_dac_nids), | ||
566 | .dac_nids = alc662_dac_nids, | ||
567 | .dig_out_nid = ALC662_DIGOUT_NID, | ||
568 | .num_channel_mode = ARRAY_SIZE(alc662_3ST_6ch_modes), | ||
569 | .channel_mode = alc662_3ST_6ch_modes, | ||
570 | .input_mux = &alc663_capture_source, | ||
571 | .unsol_event = alc_sku_unsol_event, | ||
572 | .setup = alc663_g50v_setup, | ||
573 | .init_hook = alc_inithook, | ||
574 | }, | ||
575 | }; | 380 | }; |