]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - queue-4.20/alsa-hda-add-more-quirks-for-hp-z2-g4-and-hp-z240.patch
64548ab3d833f3fe4aec1ddc34a6e2198accaf78
[thirdparty/kernel/stable-queue.git] / queue-4.20 / alsa-hda-add-more-quirks-for-hp-z2-g4-and-hp-z240.patch
1 From 167897f4b32c2bc18b3b6183029a33fb420a114e Mon Sep 17 00:00:00 2001
2 From: Jaroslav Kysela <perex@perex.cz>
3 Date: Wed, 13 Mar 2019 13:40:15 +0100
4 Subject: ALSA: hda - add more quirks for HP Z2 G4 and HP Z240
5
6 From: Jaroslav Kysela <perex@perex.cz>
7
8 commit 167897f4b32c2bc18b3b6183029a33fb420a114e upstream.
9
10 Apply the HP_MIC_NO_PRESENCE fixups for the more HP Z2 G4 and
11 HP Z240 models.
12
13 Reported-by: Jeff Burrell <jeff.burrell@hp.com>
14 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
15 Cc: <stable@vger.kernel.org>
16 Signed-off-by: Takashi Iwai <tiwai@suse.de>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
18
19 ---
20 sound/pci/hda/patch_conexant.c | 3 +++
21 sound/pci/hda/patch_realtek.c | 6 ++++--
22 2 files changed, 7 insertions(+), 2 deletions(-)
23
24 --- a/sound/pci/hda/patch_conexant.c
25 +++ b/sound/pci/hda/patch_conexant.c
26 @@ -936,6 +936,9 @@ static const struct snd_pci_quirk cxt506
27 SND_PCI_QUIRK(0x103c, 0x8299, "HP 800 G3 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE),
28 SND_PCI_QUIRK(0x103c, 0x829a, "HP 800 G3 DM", CXT_FIXUP_HP_MIC_NO_PRESENCE),
29 SND_PCI_QUIRK(0x103c, 0x8455, "HP Z2 G4", CXT_FIXUP_HP_MIC_NO_PRESENCE),
30 + SND_PCI_QUIRK(0x103c, 0x8456, "HP Z2 G4 SFF", CXT_FIXUP_HP_MIC_NO_PRESENCE),
31 + SND_PCI_QUIRK(0x103c, 0x8457, "HP Z2 G4 mini", CXT_FIXUP_HP_MIC_NO_PRESENCE),
32 + SND_PCI_QUIRK(0x103c, 0x8458, "HP Z2 G4 mini premium", CXT_FIXUP_HP_MIC_NO_PRESENCE),
33 SND_PCI_QUIRK(0x1043, 0x138d, "Asus", CXT_FIXUP_HEADPHONE_MIC_PIN),
34 SND_PCI_QUIRK(0x152d, 0x0833, "OLPC XO-1.5", CXT_FIXUP_OLPC_XO),
35 SND_PCI_QUIRK(0x17aa, 0x20f2, "Lenovo T400", CXT_PINCFG_LENOVO_TP410),
36 --- a/sound/pci/hda/patch_realtek.c
37 +++ b/sound/pci/hda/patch_realtek.c
38 @@ -6670,11 +6670,13 @@ static const struct snd_pci_quirk alc269
39 SND_PCI_QUIRK(0x103c, 0x2336, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
40 SND_PCI_QUIRK(0x103c, 0x2337, "HP", ALC269_FIXUP_HP_MUTE_LED_MIC1),
41 SND_PCI_QUIRK(0x103c, 0x221c, "HP EliteBook 755 G2", ALC280_FIXUP_HP_HEADSET_MIC),
42 + SND_PCI_QUIRK(0x103c, 0x802e, "HP Z240 SFF", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
43 + SND_PCI_QUIRK(0x103c, 0x802f, "HP Z240", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
44 SND_PCI_QUIRK(0x103c, 0x820d, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3),
45 SND_PCI_QUIRK(0x103c, 0x8256, "HP", ALC221_FIXUP_HP_FRONT_MIC),
46 SND_PCI_QUIRK(0x103c, 0x827e, "HP x360", ALC295_FIXUP_HP_X360),
47 - SND_PCI_QUIRK(0x103c, 0x82bf, "HP", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
48 - SND_PCI_QUIRK(0x103c, 0x82c0, "HP", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
49 + SND_PCI_QUIRK(0x103c, 0x82bf, "HP G3 mini", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
50 + SND_PCI_QUIRK(0x103c, 0x82c0, "HP G3 mini premium", ALC221_FIXUP_HP_MIC_NO_PRESENCE),
51 SND_PCI_QUIRK(0x103c, 0x83b9, "HP Spectre x360", ALC269_FIXUP_HP_MUTE_LED_MIC3),
52 SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC),
53 SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300),