]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/4.14.53/alsa-hda-realtek-fix-the-problem-of-two-front-mics-on-more-machines.patch
5.1-stable patches
[thirdparty/kernel/stable-queue.git] / releases / 4.14.53 / alsa-hda-realtek-fix-the-problem-of-two-front-mics-on-more-machines.patch
1 From e41fc8c5bd41b96bfae5ce4c66bee6edabc932e8 Mon Sep 17 00:00:00 2001
2 From: Hui Wang <hui.wang@canonical.com>
3 Date: Mon, 25 Jun 2018 14:40:56 +0800
4 Subject: ALSA: hda/realtek - Fix the problem of two front mics on more machines
5
6 From: Hui Wang <hui.wang@canonical.com>
7
8 commit e41fc8c5bd41b96bfae5ce4c66bee6edabc932e8 upstream.
9
10 We have 3 more Lenovo machines, they all have 2 front mics on them,
11 so they need the fixup to change the location for one of two mics.
12
13 Among these 3 Lenovo machines, one of them has the same pin cfg as the
14 machine with subid 0x17aa3138, so use the pin cfg table to apply fixup
15 for them. The rest machines don't share the same pin cfg, so far use
16 the subid to apply fixup for them.
17
18 Fixes: a3dafb2200bf ("ALSA: hda/realtek - adjust the location of one mic")
19 Cc: <stable@vger.kernel.org>
20 Signed-off-by: Hui Wang <hui.wang@canonical.com>
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 | 9 ++++++++-
26 1 file changed, 8 insertions(+), 1 deletion(-)
27
28 --- a/sound/pci/hda/patch_realtek.c
29 +++ b/sound/pci/hda/patch_realtek.c
30 @@ -6443,8 +6443,9 @@ static const struct snd_pci_quirk alc269
31 SND_PCI_QUIRK(0x17aa, 0x30bb, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
32 SND_PCI_QUIRK(0x17aa, 0x30e2, "ThinkCentre AIO", ALC233_FIXUP_LENOVO_LINE2_MIC_HOTKEY),
33 SND_PCI_QUIRK(0x17aa, 0x310c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
34 + SND_PCI_QUIRK(0x17aa, 0x312a, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
35 SND_PCI_QUIRK(0x17aa, 0x312f, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
36 - SND_PCI_QUIRK(0x17aa, 0x3138, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
37 + SND_PCI_QUIRK(0x17aa, 0x3136, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
38 SND_PCI_QUIRK(0x17aa, 0x313c, "ThinkCentre Station", ALC294_FIXUP_LENOVO_MIC_LOCATION),
39 SND_PCI_QUIRK(0x17aa, 0x3902, "Lenovo E50-80", ALC269_FIXUP_DMIC_THINKPAD_ACPI),
40 SND_PCI_QUIRK(0x17aa, 0x3977, "IdeaPad S210", ALC283_FIXUP_INT_MIC),
41 @@ -6621,6 +6622,12 @@ static const struct snd_hda_pin_quirk al
42 {0x14, 0x90170110},
43 {0x19, 0x02a11030},
44 {0x21, 0x02211020}),
45 + SND_HDA_PIN_QUIRK(0x10ec0235, 0x17aa, "Lenovo", ALC294_FIXUP_LENOVO_MIC_LOCATION,
46 + {0x14, 0x90170110},
47 + {0x19, 0x02a11030},
48 + {0x1a, 0x02a11040},
49 + {0x1b, 0x01014020},
50 + {0x21, 0x0221101f}),
51 SND_HDA_PIN_QUIRK(0x10ec0236, 0x1028, "Dell", ALC255_FIXUP_DELL1_MIC_NO_PRESENCE,
52 {0x12, 0x90a60140},
53 {0x14, 0x90170150},