diff options
| author | Jian-Hong Pan <jian-hong@endlessm.com> | 2019-03-15 05:51:09 -0400 |
|---|---|---|
| committer | Takashi Iwai <tiwai@suse.de> | 2019-03-21 02:25:42 -0400 |
| commit | 667a8f73753908c4d0171e52b71774f9be5d6713 (patch) | |
| tree | 80db03aaf3d4bd9b2dfe0a2e8fc8893e0847c1e7 | |
| parent | b5a236c175b0d984552a5f7c9d35141024c2b261 (diff) | |
ALSA: hda/realtek: Enable headset MIC of Acer AIO with ALC286
Some Acer AIO desktops like Veriton Z6860G, Z4860G and Z4660G cannot
record sound from headset MIC. This patch adds the
ALC286_FIXUP_ACER_AIO_HEADSET_MIC quirk to fix this issue.
Fixes: 9f8aefed9623 ("ALSA: hda/realtek: Fix mic issue on Acer AIO Veriton Z4660G")
Fixes: b72f936f6b32 ("ALSA: hda/realtek: Fix mic issue on Acer AIO Veriton Z4860G/Z6860G")
Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
Reviewed-by: Kailang Yang <kailang@realtek.com>
Cc: <stable@vger.kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
| -rw-r--r-- | sound/pci/hda/patch_realtek.c | 17 |
1 files changed, 14 insertions, 3 deletions
diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c index 384719d5c44e..191830d4fa40 100644 --- a/sound/pci/hda/patch_realtek.c +++ b/sound/pci/hda/patch_realtek.c | |||
| @@ -5687,6 +5687,7 @@ enum { | |||
| 5687 | ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE, | 5687 | ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE, |
| 5688 | ALC225_FIXUP_WYSE_AUTO_MUTE, | 5688 | ALC225_FIXUP_WYSE_AUTO_MUTE, |
| 5689 | ALC225_FIXUP_WYSE_DISABLE_MIC_VREF, | 5689 | ALC225_FIXUP_WYSE_DISABLE_MIC_VREF, |
| 5690 | ALC286_FIXUP_ACER_AIO_HEADSET_MIC, | ||
| 5690 | }; | 5691 | }; |
| 5691 | 5692 | ||
| 5692 | static const struct hda_fixup alc269_fixups[] = { | 5693 | static const struct hda_fixup alc269_fixups[] = { |
| @@ -6685,6 +6686,16 @@ static const struct hda_fixup alc269_fixups[] = { | |||
| 6685 | .chained = true, | 6686 | .chained = true, |
| 6686 | .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC | 6687 | .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC |
| 6687 | }, | 6688 | }, |
| 6689 | [ALC286_FIXUP_ACER_AIO_HEADSET_MIC] = { | ||
| 6690 | .type = HDA_FIXUP_VERBS, | ||
| 6691 | .v.verbs = (const struct hda_verb[]) { | ||
| 6692 | { 0x20, AC_VERB_SET_COEF_INDEX, 0x4f }, | ||
| 6693 | { 0x20, AC_VERB_SET_PROC_COEF, 0x5029 }, | ||
| 6694 | { } | ||
| 6695 | }, | ||
| 6696 | .chained = true, | ||
| 6697 | .chain_id = ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE | ||
| 6698 | }, | ||
| 6688 | }; | 6699 | }; |
| 6689 | 6700 | ||
| 6690 | static const struct snd_pci_quirk alc269_fixup_tbl[] = { | 6701 | static const struct snd_pci_quirk alc269_fixup_tbl[] = { |
| @@ -6701,9 +6712,9 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { | |||
| 6701 | SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS), | 6712 | SND_PCI_QUIRK(0x1025, 0x079b, "Acer Aspire V5-573G", ALC282_FIXUP_ASPIRE_V5_PINS), |
| 6702 | SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), | 6713 | SND_PCI_QUIRK(0x1025, 0x102b, "Acer Aspire C24-860", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), |
| 6703 | SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK), | 6714 | SND_PCI_QUIRK(0x1025, 0x106d, "Acer Cloudbook 14", ALC283_FIXUP_CHROME_BOOK), |
| 6704 | SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), | 6715 | SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| 6705 | SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), | 6716 | SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| 6706 | SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_MIC_NO_PRESENCE), | 6717 | SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| 6707 | SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC), | 6718 | SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC), |
| 6708 | SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), | 6719 | SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z), |
| 6709 | SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS), | 6720 | SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS), |
