| From 8678fc2524743b36bcd3fc68de2751e2938c24af Mon Sep 17 00:00:00 2001 |
| From: Jian-Hong Pan <jian-hong@endlessm.com> |
| Date: Mon, 6 Jul 2020 15:18:29 +0800 |
| Subject: [PATCH] ALSA: hda/realtek: Enable headset mic of Acer Veriton N4660G |
| with ALC269VC |
| |
| commit 781c90c034d994c6a4e2badf189128a95ed864c2 upstream. |
| |
| The Acer Veriton N4660G desktop's audio (1025:1248) with ALC269VC cannot |
| detect the headset microphone until ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE |
| quirk maps the NID 0x18 as the headset mic pin. |
| |
| Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com> |
| Cc: <stable@vger.kernel.org> |
| Link: https://lore.kernel.org/r/20200706071826.39726-3-jian-hong@endlessm.com |
| Signed-off-by: Takashi Iwai <tiwai@suse.de> |
| Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com> |
| |
| diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c |
| index fbb0f5531211..8a8da01bb6f4 100644 |
| --- a/sound/pci/hda/patch_realtek.c |
| +++ b/sound/pci/hda/patch_realtek.c |
| @@ -6113,6 +6113,7 @@ enum { |
| ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, |
| ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS, |
| ALC269VC_FIXUP_ACER_HEADSET_MIC, |
| + ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE, |
| }; |
| |
| static const struct hda_fixup alc269_fixups[] = { |
| @@ -7295,6 +7296,15 @@ static const struct hda_fixup alc269_fixups[] = { |
| .chained = true, |
| .chain_id = ALC269_FIXUP_HEADSET_MIC |
| }, |
| + [ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE] = { |
| + .type = HDA_FIXUP_PINS, |
| + .v.pins = (const struct hda_pintbl[]) { |
| + { 0x18, 0x01a11130 }, /* use as headset mic, without its own jack detect */ |
| + { } |
| + }, |
| + .chained = true, |
| + .chain_id = ALC269_FIXUP_HEADSET_MIC |
| + }, |
| }; |
| |
| static const struct snd_pci_quirk alc269_fixup_tbl[] = { |
| @@ -7316,6 +7326,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { |
| SND_PCI_QUIRK(0x1025, 0x110e, "Acer Aspire ES1-432", ALC255_FIXUP_ACER_MIC_NO_PRESENCE), |
| SND_PCI_QUIRK(0x1025, 0x1246, "Acer Predator Helios 500", ALC299_FIXUP_PREDATOR_SPK), |
| SND_PCI_QUIRK(0x1025, 0x1247, "Acer vCopperbox", ALC269VC_FIXUP_ACER_VCOPPERBOX_PINS), |
| + SND_PCI_QUIRK(0x1025, 0x1248, "Acer Veriton N4660G", ALC269VC_FIXUP_ACER_MIC_NO_PRESENCE), |
| SND_PCI_QUIRK(0x1025, 0x128f, "Acer Veriton Z6860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC), |
| -- |
| 2.27.0 |
| |