From: Sasha Levin Date: Thu, 21 May 2020 19:21:11 +0000 (-0400) Subject: Fixes for 5.6 X-Git-Tag: v4.4.225~66 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=562c6c640630f8920062730b9cccf208aaf54dc0;p=thirdparty%2Fkernel%2Fstable-queue.git Fixes for 5.6 Signed-off-by: Sasha Levin --- diff --git a/queue-5.6/alsa-hda-realtek-add-hp-new-mute-led-supported-for-a.patch b/queue-5.6/alsa-hda-realtek-add-hp-new-mute-led-supported-for-a.patch new file mode 100644 index 00000000000..cdd5428782f --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-add-hp-new-mute-led-supported-for-a.patch @@ -0,0 +1,116 @@ +From 9830b8411a46cea30b96c041505a64bf11749d74 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 7 Apr 2020 14:52:42 +0800 +Subject: ALSA: hda/realtek - Add HP new mute led supported for ALC236 + +From: Kailang Yang + +[ Upstream commit 24164f434dc9c23cd34fca1e36acea9d0581bdde ] + +HP new platform has new mute led feature. +COEF index 0x34 bit 5 to control playback mute led. +COEF index 0x35 bit 2 and bit 3 to control Mic mute led. + +[ corrected typos by tiwai ] + +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/r/6741211598ba499687362ff2aa30626b@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 44 +++++++++++++++++++++++++++++++++++ + 1 file changed, 44 insertions(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index 44fbd5d2d89c..368ed3678fc2 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -4223,6 +4223,23 @@ static void alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec, + } + } + ++static void alc236_fixup_hp_mute_led_coefbit(struct hda_codec *codec, ++ const struct hda_fixup *fix, ++ int action) ++{ ++ struct alc_spec *spec = codec->spec; ++ ++ if (action == HDA_FIXUP_ACT_PRE_PROBE) { ++ spec->mute_led_polarity = 0; ++ spec->mute_led_coef_idx = 0x34; ++ spec->mute_led_coefbit_mask = 1<<5; ++ spec->mute_led_coefbit_on = 0; ++ spec->mute_led_coefbit_off = 1<<5; ++ spec->gen.vmaster_mute.hook = alc_fixup_mute_led_coefbit_hook; ++ spec->gen.vmaster_mute_enum = 1; ++ } ++} ++ + /* turn on/off mic-mute LED per capture hook by coef bit */ + static void alc_hp_cap_micmute_update(struct hda_codec *codec) + { +@@ -4250,6 +4267,20 @@ static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, + } + } + ++static void alc236_fixup_hp_coef_micmute_led(struct hda_codec *codec, ++ const struct hda_fixup *fix, int action) ++{ ++ struct alc_spec *spec = codec->spec; ++ ++ if (action == HDA_FIXUP_ACT_PRE_PROBE) { ++ spec->mic_led_coef_idx = 0x35; ++ spec->mic_led_coefbit_mask = 3<<2; ++ spec->mic_led_coefbit_on = 2<<2; ++ spec->mic_led_coefbit_off = 1<<2; ++ snd_hda_gen_add_micmute_led(codec, alc_hp_cap_micmute_update); ++ } ++} ++ + static void alc285_fixup_hp_mute_led(struct hda_codec *codec, + const struct hda_fixup *fix, int action) + { +@@ -4257,6 +4288,13 @@ static void alc285_fixup_hp_mute_led(struct hda_codec *codec, + alc285_fixup_hp_coef_micmute_led(codec, fix, action); + } + ++static void alc236_fixup_hp_mute_led(struct hda_codec *codec, ++ const struct hda_fixup *fix, int action) ++{ ++ alc236_fixup_hp_mute_led_coefbit(codec, fix, action); ++ alc236_fixup_hp_coef_micmute_led(codec, fix, action); ++} ++ + #if IS_REACHABLE(CONFIG_INPUT) + static void gpio2_mic_hotkey_event(struct hda_codec *codec, + struct hda_jack_callback *event) +@@ -6056,6 +6094,7 @@ enum { + ALC294_FIXUP_ASUS_COEF_1B, + ALC285_FIXUP_HP_GPIO_LED, + ALC285_FIXUP_HP_MUTE_LED, ++ ALC236_FIXUP_HP_MUTE_LED, + }; + + static const struct hda_fixup alc269_fixups[] = { +@@ -7208,6 +7247,10 @@ static const struct hda_fixup alc269_fixups[] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc285_fixup_hp_mute_led, + }, ++ [ALC236_FIXUP_HP_MUTE_LED] = { ++ .type = HDA_FIXUP_FUNC, ++ .v.func = alc236_fixup_hp_mute_led, ++ }, + }; + + static const struct snd_pci_quirk alc269_fixup_tbl[] = { +@@ -7354,6 +7397,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { + SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3), + SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_LED), + SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED), ++ SND_PCI_QUIRK(0x103c, 0x877d, "HP", ALC236_FIXUP_HP_MUTE_LED), + SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), + SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), + SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), +-- +2.25.1 + diff --git a/queue-5.6/alsa-hda-realtek-add-quirk-for-samsung-notebook.patch b/queue-5.6/alsa-hda-realtek-add-quirk-for-samsung-notebook.patch new file mode 100644 index 00000000000..5ad9e30e4a5 --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-add-quirk-for-samsung-notebook.patch @@ -0,0 +1,62 @@ +From 6a74f270af3a35f3d182602908997af8be6cc9d8 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Sat, 9 May 2020 20:28:37 -0700 +Subject: ALSA: hda/realtek: Add quirk for Samsung Notebook + +From: Mike Pozulp + +[ Upstream commit 14425f1f521fdfe274a7bb390637c786432e08b4 ] + +Some models of the Samsung Notebook 9 have very quiet and distorted +headphone output. This quirk changes the VREF value of the ALC298 +codec NID 0x1a from default HIZ to new 100. + +[ adjusted to 5.7-base and rearranged in SSID order -- tiwai ] + +Signed-off-by: Mike Pozulp +BugLink: https://bugzilla.kernel.org/show_bug.cgi?id=207423 +Link: https://lore.kernel.org/r/20200510032838.1989130-1-pozulp.kernel@gmail.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 10 ++++++++++ + 1 file changed, 10 insertions(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index 368ed3678fc2..b377aca71cbf 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -6095,6 +6095,7 @@ enum { + ALC285_FIXUP_HP_GPIO_LED, + ALC285_FIXUP_HP_MUTE_LED, + ALC236_FIXUP_HP_MUTE_LED, ++ ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, + }; + + static const struct hda_fixup alc269_fixups[] = { +@@ -7251,6 +7252,13 @@ static const struct hda_fixup alc269_fixups[] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc236_fixup_hp_mute_led, + }, ++ [ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET] = { ++ .type = HDA_FIXUP_VERBS, ++ .v.verbs = (const struct hda_verb[]) { ++ { 0x1a, AC_VERB_SET_PIN_WIDGET_CONTROL, 0xc5 }, ++ { } ++ }, ++ }, + }; + + static const struct snd_pci_quirk alc269_fixup_tbl[] = { +@@ -7446,6 +7454,8 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { + SND_PCI_QUIRK(0x10ec, 0x10f2, "Intel Reference board", ALC700_FIXUP_INTEL_REFERENCE), + SND_PCI_QUIRK(0x10f7, 0x8338, "Panasonic CF-SZ6", ALC269_FIXUP_HEADSET_MODE), + SND_PCI_QUIRK(0x144d, 0xc109, "Samsung Ativ book 9 (NP900X3G)", ALC269_FIXUP_INV_DMIC), ++ SND_PCI_QUIRK(0x144d, 0xc169, "Samsung Notebook 9 Pen (NP930SBE-K01US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET), ++ SND_PCI_QUIRK(0x144d, 0xc176, "Samsung Notebook 9 Pro (NP930MBE-K04US)", ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET), + SND_PCI_QUIRK(0x144d, 0xc740, "Samsung Ativ book 8 (NP870Z5G)", ALC269_FIXUP_ATIV_BOOK_8), + SND_PCI_QUIRK(0x1458, 0xfa53, "Gigabyte BXBT-2807", ALC283_FIXUP_HEADSET_MIC), + SND_PCI_QUIRK(0x1462, 0xb120, "MSI Cubi MS-B120", ALC283_FIXUP_HEADSET_MIC), +-- +2.25.1 + diff --git a/queue-5.6/alsa-hda-realtek-add-supported-new-mute-led-for-hp.patch b/queue-5.6/alsa-hda-realtek-add-supported-new-mute-led-for-hp.patch new file mode 100644 index 00000000000..9f5f1b3b8db --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-add-supported-new-mute-led-for-hp.patch @@ -0,0 +1,149 @@ +From e4598e670fa1f0e2417416ffa738bd8943974b93 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 7 Apr 2020 14:40:20 +0800 +Subject: ALSA: hda/realtek - Add supported new mute Led for HP + +From: Kailang Yang + +[ Upstream commit 431e76c3edd76d84a0ed1eb81a286b2ddecc5ee4 ] + +HP Note Book supported new mute Led. +Hardware PIN was not enough to meet old LED rule. +JD2 to control playback mute led. +GPO3 to control capture mute led. +(ALC285 didn't control GPO3 via verb command) +This two PIN just could control by COEF registers. + +[ corrected typos by tiwai ] + +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/r/6741211598ba499687362ff2aa30626b@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 81 +++++++++++++++++++++++++++++++++++ + 1 file changed, 81 insertions(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index d73c814358bf..44fbd5d2d89c 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -86,6 +86,14 @@ struct alc_spec { + + unsigned int gpio_mute_led_mask; + unsigned int gpio_mic_led_mask; ++ unsigned int mute_led_coef_idx; ++ unsigned int mute_led_coefbit_mask; ++ unsigned int mute_led_coefbit_on; ++ unsigned int mute_led_coefbit_off; ++ unsigned int mic_led_coef_idx; ++ unsigned int mic_led_coefbit_mask; ++ unsigned int mic_led_coefbit_on; ++ unsigned int mic_led_coefbit_off; + + hda_nid_t headset_mic_pin; + hda_nid_t headphone_mic_pin; +@@ -4182,6 +4190,73 @@ static void alc280_fixup_hp_gpio4(struct hda_codec *codec, + } + } + ++/* update mute-LED according to the speaker mute state via COEF bit */ ++static void alc_fixup_mute_led_coefbit_hook(void *private_data, int enabled) ++{ ++ struct hda_codec *codec = private_data; ++ struct alc_spec *spec = codec->spec; ++ ++ if (spec->mute_led_polarity) ++ enabled = !enabled; ++ ++ /* temporarily power up/down for setting COEF bit */ ++ enabled ? alc_update_coef_idx(codec, spec->mute_led_coef_idx, ++ spec->mute_led_coefbit_mask, spec->mute_led_coefbit_off) : ++ alc_update_coef_idx(codec, spec->mute_led_coef_idx, ++ spec->mute_led_coefbit_mask, spec->mute_led_coefbit_on); ++} ++ ++static void alc285_fixup_hp_mute_led_coefbit(struct hda_codec *codec, ++ const struct hda_fixup *fix, ++ int action) ++{ ++ struct alc_spec *spec = codec->spec; ++ ++ if (action == HDA_FIXUP_ACT_PRE_PROBE) { ++ spec->mute_led_polarity = 0; ++ spec->mute_led_coef_idx = 0x0b; ++ spec->mute_led_coefbit_mask = 1<<3; ++ spec->mute_led_coefbit_on = 1<<3; ++ spec->mute_led_coefbit_off = 0; ++ spec->gen.vmaster_mute.hook = alc_fixup_mute_led_coefbit_hook; ++ spec->gen.vmaster_mute_enum = 1; ++ } ++} ++ ++/* turn on/off mic-mute LED per capture hook by coef bit */ ++static void alc_hp_cap_micmute_update(struct hda_codec *codec) ++{ ++ struct alc_spec *spec = codec->spec; ++ ++ if (spec->gen.micmute_led.led_value) ++ alc_update_coef_idx(codec, spec->mic_led_coef_idx, ++ spec->mic_led_coefbit_mask, spec->mic_led_coefbit_on); ++ else ++ alc_update_coef_idx(codec, spec->mic_led_coef_idx, ++ spec->mic_led_coefbit_mask, spec->mic_led_coefbit_off); ++} ++ ++static void alc285_fixup_hp_coef_micmute_led(struct hda_codec *codec, ++ const struct hda_fixup *fix, int action) ++{ ++ struct alc_spec *spec = codec->spec; ++ ++ if (action == HDA_FIXUP_ACT_PRE_PROBE) { ++ spec->mic_led_coef_idx = 0x19; ++ spec->mic_led_coefbit_mask = 1<<13; ++ spec->mic_led_coefbit_on = 1<<13; ++ spec->mic_led_coefbit_off = 0; ++ snd_hda_gen_add_micmute_led(codec, alc_hp_cap_micmute_update); ++ } ++} ++ ++static void alc285_fixup_hp_mute_led(struct hda_codec *codec, ++ const struct hda_fixup *fix, int action) ++{ ++ alc285_fixup_hp_mute_led_coefbit(codec, fix, action); ++ alc285_fixup_hp_coef_micmute_led(codec, fix, action); ++} ++ + #if IS_REACHABLE(CONFIG_INPUT) + static void gpio2_mic_hotkey_event(struct hda_codec *codec, + struct hda_jack_callback *event) +@@ -5980,6 +6055,7 @@ enum { + ALC294_FIXUP_ASUS_HPE, + ALC294_FIXUP_ASUS_COEF_1B, + ALC285_FIXUP_HP_GPIO_LED, ++ ALC285_FIXUP_HP_MUTE_LED, + }; + + static const struct hda_fixup alc269_fixups[] = { +@@ -7128,6 +7204,10 @@ static const struct hda_fixup alc269_fixups[] = { + .type = HDA_FIXUP_FUNC, + .v.func = alc285_fixup_hp_gpio_led, + }, ++ [ALC285_FIXUP_HP_MUTE_LED] = { ++ .type = HDA_FIXUP_FUNC, ++ .v.func = alc285_fixup_hp_mute_led, ++ }, + }; + + static const struct snd_pci_quirk alc269_fixup_tbl[] = { +@@ -7273,6 +7353,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { + SND_PCI_QUIRK(0x103c, 0x8497, "HP Envy x360", ALC269_FIXUP_HP_MUTE_LED_MIC3), + SND_PCI_QUIRK(0x103c, 0x84e7, "HP Pavilion 15", ALC269_FIXUP_HP_MUTE_LED_MIC3), + SND_PCI_QUIRK(0x103c, 0x8736, "HP", ALC285_FIXUP_HP_GPIO_LED), ++ SND_PCI_QUIRK(0x103c, 0x877a, "HP", ALC285_FIXUP_HP_MUTE_LED), + SND_PCI_QUIRK(0x1043, 0x103e, "ASUS X540SA", ALC256_FIXUP_ASUS_MIC), + SND_PCI_QUIRK(0x1043, 0x103f, "ASUS TX300", ALC282_FIXUP_ASUS_TX300), + SND_PCI_QUIRK(0x1043, 0x106d, "Asus K53BE", ALC269_FIXUP_LIMIT_INT_MIC_BOOST), +-- +2.25.1 + diff --git a/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-gl503vm-.patch b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-gl503vm-.patch new file mode 100644 index 00000000000..b66bc10d4b1 --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-gl503vm-.patch @@ -0,0 +1,68 @@ +From 07fad64f399eb194f88d27e81bb8a50d024abf09 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 12 May 2020 14:15:24 +0800 +Subject: ALSA: hda/realtek - Enable headset mic of ASUS GL503VM with ALC295 + +From: Chris Chiu + +[ Upstream commit 9e43342b464f1de570a3ad8256ac77645749ef45 ] + +The ASUS laptop GL503VM with ALC295 can't detect the headset microphone. +The headset microphone does not work until pin 0x19 is enabled for it. + +Signed-off-by: Chris Chiu +Signed-off-by: Daniel Drake +Signed-off-by: Jian-Hong Pan +Link: https://lore.kernel.org/r/20200512061525.133985-1-jian-hong@endlessm.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 18 ++++++++++++++++++ + 1 file changed, 18 insertions(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index b377aca71cbf..f92cd420e98d 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -6096,6 +6096,7 @@ enum { + ALC285_FIXUP_HP_MUTE_LED, + ALC236_FIXUP_HP_MUTE_LED, + ALC298_FIXUP_SAMSUNG_HEADPHONE_VERY_QUIET, ++ ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, + }; + + static const struct hda_fixup alc269_fixups[] = { +@@ -7259,6 +7260,15 @@ static const struct hda_fixup alc269_fixups[] = { + { } + }, + }, ++ [ALC295_FIXUP_ASUS_MIC_NO_PRESENCE] = { ++ .type = HDA_FIXUP_PINS, ++ .v.pins = (const struct hda_pintbl[]) { ++ { 0x19, 0x01a1913c }, /* use as headset mic, without its own jack detect */ ++ { } ++ }, ++ .chained = true, ++ .chain_id = ALC269_FIXUP_HEADSET_MODE ++ }, + }; + + static const struct snd_pci_quirk alc269_fixup_tbl[] = { +@@ -8040,6 +8050,14 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x03211020}), ++ SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, ++ {0x12, 0x90a60130}, ++ {0x17, 0x90170110}, ++ {0x21, 0x03211020}), ++ SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, ++ {0x12, 0x90a60130}, ++ {0x17, 0x90170110}, ++ {0x21, 0x03211020}), + SND_HDA_PIN_QUIRK(0x10ec0295, 0x1028, "Dell", ALC269_FIXUP_DELL4_MIC_NO_PRESENCE, + {0x14, 0x90170110}, + {0x21, 0x04211020}), +-- +2.25.1 + diff --git a/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux550ge-.patch b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux550ge-.patch new file mode 100644 index 00000000000..837063acfae --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux550ge-.patch @@ -0,0 +1,39 @@ +From 4f896525758a28899732967d1cbe5fb9048a7cf2 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 12 May 2020 14:15:26 +0800 +Subject: ALSA: hda/realtek - Enable headset mic of ASUS UX550GE with ALC295 + +From: Jian-Hong Pan + +[ Upstream commit ad97d667854c2fbce05a004e107f358ef4b04cf6 ] + +The ASUS laptop UX550GE with ALC295 can't detect the headset microphone +until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk applied. + +Signed-off-by: Jian-Hong Pan +Signed-off-by: Daniel Drake +Link: https://lore.kernel.org/r/20200512061525.133985-2-jian-hong@endlessm.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 4 ++++ + 1 file changed, 4 insertions(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index f92cd420e98d..ece762d0c714 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -8050,6 +8050,10 @@ static const struct snd_hda_pin_quirk alc269_pin_fixup_tbl[] = { + {0x12, 0x90a60130}, + {0x17, 0x90170110}, + {0x21, 0x03211020}), ++ SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, ++ {0x12, 0x90a60120}, ++ {0x17, 0x90170110}, ++ {0x21, 0x04211030}), + SND_HDA_PIN_QUIRK(0x10ec0295, 0x1043, "ASUS", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE, + {0x12, 0x90a60130}, + {0x17, 0x90170110}, +-- +2.25.1 + diff --git a/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux581lv-.patch b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux581lv-.patch new file mode 100644 index 00000000000..8081b57987d --- /dev/null +++ b/queue-5.6/alsa-hda-realtek-enable-headset-mic-of-asus-ux581lv-.patch @@ -0,0 +1,36 @@ +From 2017d74ac5b33f32ba228ca19bdb8a4b4ab3f8fe Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 12 May 2020 14:15:28 +0800 +Subject: ALSA: hda/realtek: Enable headset mic of ASUS UX581LV with ALC295 + +From: Jian-Hong Pan + +[ Upstream commit 7900e81797613b92f855f9921392a7430cbdf88c ] + +The ASUS UX581LV laptop's audio (1043:19e1) with ALC295 can't detect the +headset microphone until ALC295_FIXUP_ASUS_MIC_NO_PRESENCE quirk +applied. + +Signed-off-by: Jian-Hong Pan +Link: https://lore.kernel.org/r/20200512061525.133985-3-jian-hong@endlessm.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 1 + + 1 file changed, 1 insertion(+) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index ece762d0c714..dc2302171a71 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -7436,6 +7436,7 @@ static const struct snd_pci_quirk alc269_fixup_tbl[] = { + SND_PCI_QUIRK(0x1043, 0x18b1, "Asus MJ401TA", ALC256_FIXUP_ASUS_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x18f1, "Asus FX505DT", ALC256_FIXUP_ASUS_HEADSET_MIC), + SND_PCI_QUIRK(0x1043, 0x19ce, "ASUS B9450FA", ALC294_FIXUP_ASUS_HPE), ++ SND_PCI_QUIRK(0x1043, 0x19e1, "ASUS UX581LV", ALC295_FIXUP_ASUS_MIC_NO_PRESENCE), + SND_PCI_QUIRK(0x1043, 0x1a13, "Asus G73Jw", ALC269_FIXUP_ASUS_G73JW), + SND_PCI_QUIRK(0x1043, 0x1a30, "ASUS X705UD", ALC256_FIXUP_ASUS_MIC), + SND_PCI_QUIRK(0x1043, 0x1b11, "ASUS UX431DA", ALC294_FIXUP_ASUS_COEF_1B), +-- +2.25.1 + diff --git a/queue-5.6/series b/queue-5.6/series index dc27b5eb4c0..691dc790be4 100644 --- a/queue-5.6/series +++ b/queue-5.6/series @@ -53,3 +53,9 @@ kvm-selftests-fix-build-for-evmcs.h.patch arm-futex-address-build-warning.patch tools-bootconfig-fix-resource-leak-in-apply_xbc.patch scripts-gdb-repair-rb_first-and-rb_last.patch +alsa-hda-realtek-add-supported-new-mute-led-for-hp.patch +alsa-hda-realtek-add-hp-new-mute-led-supported-for-a.patch +alsa-hda-realtek-add-quirk-for-samsung-notebook.patch +alsa-hda-realtek-enable-headset-mic-of-asus-gl503vm-.patch +alsa-hda-realtek-enable-headset-mic-of-asus-ux550ge-.patch +alsa-hda-realtek-enable-headset-mic-of-asus-ux581lv-.patch