aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci/hda/patch_realtek.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/pci/hda/patch_realtek.c')
-rw-r--r--sound/pci/hda/patch_realtek.c17
1 files changed, 11 insertions, 6 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c
index 951a090cef4a..6dd1b74e9f68 100644
--- a/sound/pci/hda/patch_realtek.c
+++ b/sound/pci/hda/patch_realtek.c
@@ -5381,6 +5381,8 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
5381 SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G", 5381 SND_PCI_QUIRK(0x1025, 0x0142, "Acer Aspire 7730G",
5382 ALC882_FIXUP_ACER_ASPIRE_4930G), 5382 ALC882_FIXUP_ACER_ASPIRE_4930G),
5383 SND_PCI_QUIRK(0x1025, 0x0155, "Packard-Bell M5120", ALC882_FIXUP_PB_M5210), 5383 SND_PCI_QUIRK(0x1025, 0x0155, "Packard-Bell M5120", ALC882_FIXUP_PB_M5210),
5384 SND_PCI_QUIRK(0x1025, 0x021e, "Acer Aspire 5739G",
5385 ALC882_FIXUP_ACER_ASPIRE_4930G),
5384 SND_PCI_QUIRK(0x1025, 0x0259, "Acer Aspire 5935", ALC889_FIXUP_DAC_ROUTE), 5386 SND_PCI_QUIRK(0x1025, 0x0259, "Acer Aspire 5935", ALC889_FIXUP_DAC_ROUTE),
5385 SND_PCI_QUIRK(0x1025, 0x026b, "Acer Aspire 8940G", ALC882_FIXUP_ACER_ASPIRE_8930G), 5387 SND_PCI_QUIRK(0x1025, 0x026b, "Acer Aspire 8940G", ALC882_FIXUP_ACER_ASPIRE_8930G),
5386 SND_PCI_QUIRK(0x1025, 0x0296, "Acer Aspire 7736z", ALC882_FIXUP_ACER_ASPIRE_7736), 5388 SND_PCI_QUIRK(0x1025, 0x0296, "Acer Aspire 7736z", ALC882_FIXUP_ACER_ASPIRE_7736),
@@ -5414,6 +5416,7 @@ static const struct snd_pci_quirk alc882_fixup_tbl[] = {
5414 SND_PCI_QUIRK(0x106b, 0x4a00, "Macbook 5,2", ALC889_FIXUP_IMAC91_VREF), 5416 SND_PCI_QUIRK(0x106b, 0x4a00, "Macbook 5,2", ALC889_FIXUP_IMAC91_VREF),
5415 5417
5416 SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC882_FIXUP_EAPD), 5418 SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC882_FIXUP_EAPD),
5419 SND_PCI_QUIRK(0x1462, 0x7350, "MSI-7350", ALC889_FIXUP_CD),
5417 SND_PCI_QUIRK_VENDOR(0x1462, "MSI", ALC882_FIXUP_GPIO3), 5420 SND_PCI_QUIRK_VENDOR(0x1462, "MSI", ALC882_FIXUP_GPIO3),
5418 SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3", ALC889_FIXUP_CD), 5421 SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3", ALC889_FIXUP_CD),
5419 SND_PCI_QUIRK(0x147b, 0x107a, "Abit AW9D-MAX", ALC882_FIXUP_ABIT_AW9D_MAX), 5422 SND_PCI_QUIRK(0x147b, 0x107a, "Abit AW9D-MAX", ALC882_FIXUP_ABIT_AW9D_MAX),
@@ -5614,13 +5617,13 @@ static int patch_alc262(struct hda_codec *codec)
5614 snd_hda_codec_write(codec, 0x1a, 0, AC_VERB_SET_PROC_COEF, tmp | 0x80); 5617 snd_hda_codec_write(codec, 0x1a, 0, AC_VERB_SET_PROC_COEF, tmp | 0x80);
5615 } 5618 }
5616#endif 5619#endif
5617 alc_auto_parse_customize_define(codec);
5618
5619 alc_fix_pll_init(codec, 0x20, 0x0a, 10); 5620 alc_fix_pll_init(codec, 0x20, 0x0a, 10);
5620 5621
5621 alc_pick_fixup(codec, NULL, alc262_fixup_tbl, alc262_fixups); 5622 alc_pick_fixup(codec, NULL, alc262_fixup_tbl, alc262_fixups);
5622 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); 5623 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE);
5623 5624
5625 alc_auto_parse_customize_define(codec);
5626
5624 /* automatic parse from the BIOS config */ 5627 /* automatic parse from the BIOS config */
5625 err = alc262_parse_auto_config(codec); 5628 err = alc262_parse_auto_config(codec);
5626 if (err < 0) 5629 if (err < 0)
@@ -6083,6 +6086,7 @@ static const struct alc_fixup alc269_fixups[] = {
6083 6086
6084static const struct snd_pci_quirk alc269_fixup_tbl[] = { 6087static const struct snd_pci_quirk alc269_fixup_tbl[] = {
6085 SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_MIC2_MUTE_LED), 6088 SND_PCI_QUIRK(0x103c, 0x1586, "HP", ALC269_FIXUP_MIC2_MUTE_LED),
6089 SND_PCI_QUIRK(0x1043, 0x1427, "Asus Zenbook UX31E", ALC269VB_FIXUP_DMIC),
6086 SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), 6090 SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW),
6087 SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC), 6091 SND_PCI_QUIRK(0x1043, 0x16e3, "ASUS UX50", ALC269_FIXUP_STEREO_DMIC),
6088 SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC), 6092 SND_PCI_QUIRK(0x1043, 0x831a, "ASUS P901", ALC269_FIXUP_STEREO_DMIC),
@@ -6222,8 +6226,6 @@ static int patch_alc269(struct hda_codec *codec)
6222 6226
6223 spec->mixer_nid = 0x0b; 6227 spec->mixer_nid = 0x0b;
6224 6228
6225 alc_auto_parse_customize_define(codec);
6226
6227 err = alc_codec_rename_from_preset(codec); 6229 err = alc_codec_rename_from_preset(codec);
6228 if (err < 0) 6230 if (err < 0)
6229 goto error; 6231 goto error;
@@ -6256,6 +6258,8 @@ static int patch_alc269(struct hda_codec *codec)
6256 alc269_fixup_tbl, alc269_fixups); 6258 alc269_fixup_tbl, alc269_fixups);
6257 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); 6259 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE);
6258 6260
6261 alc_auto_parse_customize_define(codec);
6262
6259 /* automatic parse from the BIOS config */ 6263 /* automatic parse from the BIOS config */
6260 err = alc269_parse_auto_config(codec); 6264 err = alc269_parse_auto_config(codec);
6261 if (err < 0) 6265 if (err < 0)
@@ -6831,8 +6835,6 @@ static int patch_alc662(struct hda_codec *codec)
6831 /* handle multiple HPs as is */ 6835 /* handle multiple HPs as is */
6832 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP; 6836 spec->parse_flags = HDA_PINCFG_NO_HP_FIXUP;
6833 6837
6834 alc_auto_parse_customize_define(codec);
6835
6836 alc_fix_pll_init(codec, 0x20, 0x04, 15); 6838 alc_fix_pll_init(codec, 0x20, 0x04, 15);
6837 6839
6838 err = alc_codec_rename_from_preset(codec); 6840 err = alc_codec_rename_from_preset(codec);
@@ -6849,6 +6851,9 @@ static int patch_alc662(struct hda_codec *codec)
6849 alc_pick_fixup(codec, alc662_fixup_models, 6851 alc_pick_fixup(codec, alc662_fixup_models,
6850 alc662_fixup_tbl, alc662_fixups); 6852 alc662_fixup_tbl, alc662_fixups);
6851 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE); 6853 alc_apply_fixup(codec, ALC_FIXUP_ACT_PRE_PROBE);
6854
6855 alc_auto_parse_customize_define(codec);
6856
6852 /* automatic parse from the BIOS config */ 6857 /* automatic parse from the BIOS config */
6853 err = alc662_parse_auto_config(codec); 6858 err = alc662_parse_auto_config(codec);
6854 if (err < 0) 6859 if (err < 0)