| From 4841b8e6318a7f0ae57c4e5ec09032ea057c97a8 Mon Sep 17 00:00:00 2001 |
| From: PeiSen Hou <pshou@realtek.com> |
| Date: Tue, 2 Feb 2021 10:30:22 +0100 |
| Subject: ALSA: hda/realtek: modify EAPD in the ALC886 |
| |
| From: PeiSen Hou <pshou@realtek.com> |
| |
| commit 4841b8e6318a7f0ae57c4e5ec09032ea057c97a8 upstream. |
| |
| Modify 0x20 index 7 bit 5 to 1, make the 0x15 EAPD the same as 0x14. |
| |
| Signed-off-by: PeiSen Hou <pshou@realtek.com> |
| Cc: <stable@vger.kernel.org> |
| Link: https://lore.kernel.org/r/e62c5058957f48d8b8953e97135ff108@realtek.com |
| Signed-off-by: Takashi Iwai <tiwai@suse.de> |
| Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
| --- |
| sound/pci/hda/patch_realtek.c | 11 +++++++++++ |
| 1 file changed, 11 insertions(+) |
| |
| --- a/sound/pci/hda/patch_realtek.c |
| +++ b/sound/pci/hda/patch_realtek.c |
| @@ -1792,6 +1792,7 @@ enum { |
| ALC889_FIXUP_FRONT_HP_NO_PRESENCE, |
| ALC889_FIXUP_VAIO_TT, |
| ALC888_FIXUP_EEE1601, |
| + ALC886_FIXUP_EAPD, |
| ALC882_FIXUP_EAPD, |
| ALC883_FIXUP_EAPD, |
| ALC883_FIXUP_ACER_EAPD, |
| @@ -2100,6 +2101,15 @@ static const struct hda_fixup alc882_fix |
| { } |
| } |
| }, |
| + [ALC886_FIXUP_EAPD] = { |
| + .type = HDA_FIXUP_VERBS, |
| + .v.verbs = (const struct hda_verb[]) { |
| + /* change to EAPD mode */ |
| + { 0x20, AC_VERB_SET_COEF_INDEX, 0x07 }, |
| + { 0x20, AC_VERB_SET_PROC_COEF, 0x0068 }, |
| + { } |
| + } |
| + }, |
| [ALC882_FIXUP_EAPD] = { |
| .type = HDA_FIXUP_VERBS, |
| .v.verbs = (const struct hda_verb[]) { |
| @@ -2340,6 +2350,7 @@ static const struct snd_pci_quirk alc882 |
| SND_PCI_QUIRK(0x106b, 0x4a00, "Macbook 5,2", ALC889_FIXUP_MBA11_VREF), |
| |
| SND_PCI_QUIRK(0x1071, 0x8258, "Evesham Voyaeger", ALC882_FIXUP_EAPD), |
| + SND_PCI_QUIRK(0x13fe, 0x1009, "Advantech MIT-W101", ALC886_FIXUP_EAPD), |
| SND_PCI_QUIRK(0x1458, 0xa002, "Gigabyte EP45-DS3/Z87X-UD3H", ALC889_FIXUP_FRONT_HP_NO_PRESENCE), |
| SND_PCI_QUIRK(0x1458, 0xa0b8, "Gigabyte AZ370-Gaming", ALC1220_FIXUP_GB_DUAL_CODECS), |
| SND_PCI_QUIRK(0x1462, 0x7350, "MSI-7350", ALC889_FIXUP_CD), |