aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2011-11-07 11:18:44 -0500
committerTakashi Iwai <tiwai@suse.de>2011-11-08 02:59:36 -0500
commit42399f7a71df817a0aab82dd88dc05521c88385b (patch)
tree06c640522ab929700f4fa4e3da7f7de6a68265d0 /sound/pci/hda/patch_realtek.c
parent24de183ed0369d73af89e6752fcc1ecbde59053d (diff)
ALSA: hda/realtek - Remove all ALC262-quirk codes
Now that model=ultra is supported well by the auto-parser, we can get rid of the whole alc262_quirks.c and its related codes. Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c36
1 files changed, 7 insertions, 29 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index ef040ec6580d..afdecd86e9a9 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -4493,14 +4493,9 @@ static const struct snd_pci_quirk alc262_fixup_tbl[] = {
4493 4493
4494/* 4494/*
4495 */ 4495 */
4496#ifdef CONFIG_SND_HDA_ENABLE_REALTEK_QUIRKS
4497#include "alc262_quirks.c"
4498#endif
4499
4500static int patch_alc262(struct hda_codec *codec) 4496static int patch_alc262(struct hda_codec *codec)
4501{ 4497{
4502 struct alc_spec *spec; 4498 struct alc_spec *spec;
4503 int board_config;
4504 int err; 4499 int err;
4505 4500
4506 spec = kzalloc(sizeof(*spec), GFP_KERNEL); 4501 spec = kzalloc(sizeof(*spec), GFP_KERNEL);
@@ -4527,29 +4522,13 @@ static int patch_alc262(struct hda_codec *codec)
4527 4522
4528 alc_fix_pll_init(codec, 0x20, 0x0a, 10); 4523 alc_fix_pll_init(codec, 0x20, 0x0a, 10);
4529 4524
4530 board_config = alc_board_config(codec, ALC262_MODEL_LAST, 4525 alc_pick_fixup(codec, NULL, alc262_fixup_tbl, alc262_fixups);
4531 alc262_models, alc262_cfg_tbl); 4526 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE);
4532
4533 if (board_config < 0) {
4534 printk(KERN_INFO "hda_codec: %s: BIOS auto-probing.\n",
4535 codec->chip_name);
4536 board_config = ALC_MODEL_AUTO;
4537 }
4538
4539 if (board_config == ALC_MODEL_AUTO) {
4540 alc_pick_fixup(codec, NULL, alc262_fixup_tbl, alc262_fixups);
4541 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE);
4542 }
4543
4544 if (board_config == ALC_MODEL_AUTO) {
4545 /* automatic parse from the BIOS config */
4546 err = alc262_parse_auto_config(codec);
4547 if (err < 0)
4548 goto error;
4549 }
4550 4527
4551 if (board_config != ALC_MODEL_AUTO) 4528 /* automatic parse from the BIOS config */
4552 setup_preset(codec, &alc262_presets[board_config]); 4529 err = alc262_parse_auto_config(codec);
4530 if (err < 0)
4531 goto error;
4553 4532
4554 if (!spec->no_analog && !spec->adc_nids) { 4533 if (!spec->no_analog && !spec->adc_nids) {
4555 alc_auto_fill_adc_caps(codec); 4534 alc_auto_fill_adc_caps(codec);
@@ -4572,8 +4551,7 @@ static int patch_alc262(struct hda_codec *codec)
4572 spec->vmaster_nid = 0x0c; 4551 spec->vmaster_nid = 0x0c;
4573 4552
4574 codec->patch_ops = alc_patch_ops; 4553 codec->patch_ops = alc_patch_ops;
4575 if (board_config == ALC_MODEL_AUTO) 4554 spec->init_hook = alc_auto_init_std;
4576 spec->init_hook = alc_auto_init_std;
4577 spec->shutup = alc_eapd_shutup; 4555 spec->shutup = alc_eapd_shutup;
4578 4556
4579 alc_init_jacks(codec); 4557 alc_init_jacks(codec);