]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.19.35/alsa-hda-realtek-enable-headset-mic-of-acer-travelmate-b114-21-with-alc233.patch
Linux 4.19.35
[thirdparty/kernel/stable-queue.git] / releases / 4.19.35 / alsa-hda-realtek-enable-headset-mic-of-acer-travelmate-b114-21-with-alc233.patch
1 From ea5c7eba216e832906e594799b8670f1954a588c Mon Sep 17 00:00:00 2001
2 From: Jian-Hong Pan <jian-hong@endlessm.com>
3 Date: Mon, 1 Apr 2019 11:25:05 +0800
4 Subject: ALSA: hda/realtek: Enable headset MIC of Acer TravelMate B114-21 with ALC233
5
6 From: Jian-Hong Pan <jian-hong@endlessm.com>
7
8 commit ea5c7eba216e832906e594799b8670f1954a588c upstream.
9
10 The Acer TravelMate B114-21 laptop cannot detect and record sound from
11 headset MIC. This patch adds the ALC233_FIXUP_ACER_HEADSET_MIC HDA verb
12 quirk chained with ALC233_FIXUP_ASUS_MIC_NO_PRESENCE pin quirk to fix
13 this issue.
14
15 [ fixed the missing brace and reordered the entry -- tiwai ]
16
17 Signed-off-by: Jian-Hong Pan <jian-hong@endlessm.com>
18 Signed-off-by: Daniel Drake <drake@endlessm.com>
19 Reviewed-by: Kailang Yang <kailang@realtek.com>
20 Cc: <stable@vger.kernel.org>
21 Signed-off-by: Takashi Iwai <tiwai@suse.de>
22 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
23
24 ---
25 sound/pci/hda/patch_realtek.c | 12 ++++++++++++
26 1 file changed, 12 insertions(+)
27
28 --- a/sound/pci/hda/patch_realtek.c
29 +++ b/sound/pci/hda/patch_realtek.c
30 @@ -5594,6 +5594,7 @@ enum {
31 ALC233_FIXUP_ASUS_MIC_NO_PRESENCE,
32 ALC233_FIXUP_EAPD_COEF_AND_MIC_NO_PRESENCE,
33 ALC233_FIXUP_LENOVO_MULTI_CODECS,
34 + ALC233_FIXUP_ACER_HEADSET_MIC,
35 ALC294_FIXUP_LENOVO_MIC_LOCATION,
36 ALC225_FIXUP_DELL_WYSE_MIC_NO_PRESENCE,
37 ALC700_FIXUP_INTEL_REFERENCE,
38 @@ -6401,6 +6402,16 @@ static const struct hda_fixup alc269_fix
39 .type = HDA_FIXUP_FUNC,
40 .v.func = alc233_alc662_fixup_lenovo_dual_codecs,
41 },
42 + [ALC233_FIXUP_ACER_HEADSET_MIC] = {
43 + .type = HDA_FIXUP_VERBS,
44 + .v.verbs = (const struct hda_verb[]) {
45 + { 0x20, AC_VERB_SET_COEF_INDEX, 0x45 },
46 + { 0x20, AC_VERB_SET_PROC_COEF, 0x5089 },
47 + { }
48 + },
49 + .chained = true,
50 + .chain_id = ALC233_FIXUP_ASUS_MIC_NO_PRESENCE
51 + },
52 [ALC294_FIXUP_LENOVO_MIC_LOCATION] = {
53 .type = HDA_FIXUP_PINS,
54 .v.pins = (const struct hda_pintbl[]) {
55 @@ -6644,6 +6655,7 @@ static const struct snd_pci_quirk alc269
56 SND_PCI_QUIRK(0x1025, 0x1290, "Acer Veriton Z4860G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
57 SND_PCI_QUIRK(0x1025, 0x1291, "Acer Veriton Z4660G", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
58 SND_PCI_QUIRK(0x1025, 0x1308, "Acer Aspire Z24-890", ALC286_FIXUP_ACER_AIO_HEADSET_MIC),
59 + SND_PCI_QUIRK(0x1025, 0x132a, "Acer TravelMate B114-21", ALC233_FIXUP_ACER_HEADSET_MIC),
60 SND_PCI_QUIRK(0x1025, 0x1330, "Acer TravelMate X514-51T", ALC255_FIXUP_ACER_HEADSET_MIC),
61 SND_PCI_QUIRK(0x1028, 0x0470, "Dell M101z", ALC269_FIXUP_DELL_M101Z),
62 SND_PCI_QUIRK(0x1028, 0x054b, "Dell XPS one 2710", ALC275_FIXUP_DELL_XPS),