]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/5.0.6/alsa-hda-realtek-add-support-headset-mode-for-dell-wyse-aio.patch
Linux 4.19.33
[thirdparty/kernel/stable-queue.git] / releases / 5.0.6 / alsa-hda-realtek-add-support-headset-mode-for-dell-wyse-aio.patch
1 From 136824efaab2c095fc911048f7c7ddeda258c965 Mon Sep 17 00:00:00 2001
2 From: Kailang Yang <kailang@realtek.com>
3 Date: Thu, 14 Mar 2019 16:22:45 +0800
4 Subject: ALSA: hda/realtek - Add support headset mode for DELL WYSE AIO
5
6 From: Kailang Yang <kailang@realtek.com>
7
8 commit 136824efaab2c095fc911048f7c7ddeda258c965 upstream.
9
10 This patch will enable WYSE AIO for Headset mode.
11
12 Signed-off-by: Kailang Yang <kailang@realtek.com>
13 Signed-off-by: Takashi Iwai <tiwai@suse.de>
14 Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
15
16 ---
17 sound/pci/hda/patch_realtek.c | 26 ++++++++++++++++++++++++++
18 1 file changed, 26 insertions(+)
19
20 --- a/sound/pci/hda/patch_realtek.c
21 +++ b/sound/pci/hda/patch_realtek.c
22 @@ -5682,6 +5682,9 @@ enum {
23 ALC285_FIXUP_LENOVO_PC_BEEP_IN_NOISE,
24 ALC255_FIXUP_ACER_HEADSET_MIC,
25 ALC295_FIXUP_CHROME_BOOK,
26 + ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE,
27 + ALC225_FIXUP_WYSE_AUTO_MUTE,
28 + ALC225_FIXUP_WYSE_DISABLE_MIC_VREF,
29 };
30
31 static const struct hda_fixup alc269_fixups[] = {
32 @@ -6658,6 +6661,28 @@ static const struct hda_fixup alc269_fix
33 .chained = true,
34 .chain_id = ALC255_FIXUP_HEADSET_MODE_NO_HP_MIC
35 },
36 + [ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE] = {
37 + .type = HDA_FIXUP_PINS,
38 + .v.pins = (const struct hda_pintbl[]) {
39 + { 0x16, 0x01011020 }, /* Rear Line out */
40 + { 0x19, 0x01a1913c }, /* use as Front headset mic, without its own jack detect */
41 + { }
42 + },
43 + .chained = true,
44 + .chain_id = ALC225_FIXUP_WYSE_AUTO_MUTE
45 + },
46 + [ALC225_FIXUP_WYSE_AUTO_MUTE] = {
47 + .type = HDA_FIXUP_FUNC,
48 + .v.func = alc_fixup_auto_mute_via_amp,
49 + .chained = true,
50 + .chain_id = ALC225_FIXUP_WYSE_DISABLE_MIC_VREF
51 + },
52 + [ALC225_FIXUP_WYSE_DISABLE_MIC_VREF] = {
53 + .type = HDA_FIXUP_FUNC,
54 + .v.func = alc_fixup_disable_mic_vref,
55 + .chained = true,
56 + .chain_id = ALC269_FIXUP_HEADSET_MODE_NO_HP_MIC
57 + },
58 };
59
60 static const struct snd_pci_quirk alc269_fixup_tbl[] = {
61 @@ -6722,6 +6747,7 @@ static const struct snd_pci_quirk alc269
62 SND_PCI_QUIRK(0x1028, 0x0871, "Dell Precision 3630", ALC255_FIXUP_DELL_HEADSET_MIC),
63 SND_PCI_QUIRK(0x1028, 0x0872, "Dell Precision 3630", ALC255_FIXUP_DELL_HEADSET_MIC),
64 SND_PCI_QUIRK(0x1028, 0x0873, "Dell Precision 3930", ALC255_FIXUP_DUMMY_LINEOUT_VERB),
65 + SND_PCI_QUIRK(0x1028, 0x08ad, "Dell WYSE AIO", ALC225_FIXUP_DELL_WYSE_AIO_MIC_NO_PRESENCE),
66 SND_PCI_QUIRK(0x1028, 0x0935, "Dell", ALC274_FIXUP_DELL_AIO_LINEOUT_VERB),
67 SND_PCI_QUIRK(0x1028, 0x164a, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),
68 SND_PCI_QUIRK(0x1028, 0x164b, "Dell", ALC293_FIXUP_DELL1_MIC_NO_PRESENCE),