From a79ef3fa434e48362d47c19d459b07fa50791ced Mon Sep 17 00:00:00 2001 From: Sasha Levin Date: Thu, 6 Nov 2025 10:40:57 -0500 Subject: [PATCH] Fixes for all trees Signed-off-by: Sasha Levin --- ...-audio-disappears-on-hp-15-fc000-aft.patch | 74 +++++++++++++++++++ queue-5.10/series | 1 + ...-audio-disappears-on-hp-15-fc000-aft.patch | 74 +++++++++++++++++++ queue-5.15/series | 1 + ...-audio-disappears-on-hp-15-fc000-aft.patch | 74 +++++++++++++++++++ queue-6.1/series | 1 + ...-audio-disappears-on-hp-15-fc000-aft.patch | 74 +++++++++++++++++++ queue-6.12/series | 1 + ...-audio-disappears-on-hp-15-fc000-aft.patch | 74 +++++++++++++++++++ queue-6.6/series | 1 + 10 files changed, 375 insertions(+) create mode 100644 queue-5.10/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch create mode 100644 queue-5.15/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch create mode 100644 queue-6.1/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch create mode 100644 queue-6.12/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch create mode 100644 queue-6.6/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch diff --git a/queue-5.10/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch b/queue-5.10/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch new file mode 100644 index 0000000000..4602b3388f --- /dev/null +++ b/queue-5.10/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch @@ -0,0 +1,74 @@ +From 46890e9280d8efb3f8a96f8865c527a94484b7d0 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 19 Aug 2025 14:03:44 +0800 +Subject: ALSA: hda/realtek: Audio disappears on HP 15-fc000 after warm boot + again + +From: Kailang Yang + +[ Upstream commit f4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb ] + +There was a similar bug in the past (Bug 217440), which was fixed for +this laptop. +The same issue is occurring again as of kernel v.6.12.2. The symptoms +are very similar - initially audio works but after a warm reboot, the +audio completely disappears until the computer is powered off (there +is no audio output at all). + +The issue is also related by caused by a different change now. By +bisecting different kernel versions, I found that reverting +cc3d0b5dd989 in patch_realtek.c[*] restores the sound and it works +fine after the reboot. + +[*] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/sound/pci/hda/patch_realtek.c?h=v6.12.2&id=4ed7f16070a8475c088ff423b2eb11ba15eb89b6 + +[ patch description reformatted by tiwai ] + +Fixes: cc3d0b5dd989 ("ALSA: hda/realtek: Update ALC256 depop procedure") +Link: https://bugzilla.kernel.org/show_bug.cgi?id=220109 +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/5317ca723c82447a938414fcca85cbf5@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index 84dde97424080..a9c71f38710ed 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -3637,6 +3637,15 @@ static void alc256_shutup(struct hda_codec *codec) + hp_pin = 0x21; + + alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ ++ ++ /* 3k pull low control for Headset jack. */ ++ /* NOTE: call this before clearing the pin, otherwise codec stalls */ ++ /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly ++ * when booting with headset plugged. So skip setting it for the codec alc257 ++ */ ++ if (spec->en_3kpull_low) ++ alc_update_coef_idx(codec, 0x46, 0, 3 << 12); ++ + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + if (hp_pin_sense) { +@@ -3647,14 +3656,6 @@ static void alc256_shutup(struct hda_codec *codec) + + msleep(75); + +- /* 3k pull low control for Headset jack. */ +- /* NOTE: call this before clearing the pin, otherwise codec stalls */ +- /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly +- * when booting with headset plugged. So skip setting it for the codec alc257 +- */ +- if (spec->en_3kpull_low) +- alc_update_coef_idx(codec, 0x46, 0, 3 << 12); +- + if (!spec->no_shutup_pins) + snd_hda_codec_write(codec, hp_pin, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); +-- +2.51.0 + diff --git a/queue-5.10/series b/queue-5.10/series index e42929598d..6e705701bb 100644 --- a/queue-5.10/series +++ b/queue-5.10/series @@ -153,3 +153,4 @@ tools-bitmap-add-missing-asm-generic-bitsperlong.h-i.patch fbdev-add-bounds-checking-in-bit_putcs-to-fix-vmallo.patch asoc-meson-aiu-encoder-i2s-fix-bit-clock-polarity.patch ceph-add-checking-of-wait_for_completion_killable-re.patch +alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch diff --git a/queue-5.15/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch b/queue-5.15/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch new file mode 100644 index 0000000000..97fa1c33f5 --- /dev/null +++ b/queue-5.15/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch @@ -0,0 +1,74 @@ +From a83bc2ece33d10e32cc723566b461667bbee716f Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 19 Aug 2025 14:03:44 +0800 +Subject: ALSA: hda/realtek: Audio disappears on HP 15-fc000 after warm boot + again + +From: Kailang Yang + +[ Upstream commit f4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb ] + +There was a similar bug in the past (Bug 217440), which was fixed for +this laptop. +The same issue is occurring again as of kernel v.6.12.2. The symptoms +are very similar - initially audio works but after a warm reboot, the +audio completely disappears until the computer is powered off (there +is no audio output at all). + +The issue is also related by caused by a different change now. By +bisecting different kernel versions, I found that reverting +cc3d0b5dd989 in patch_realtek.c[*] restores the sound and it works +fine after the reboot. + +[*] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/sound/pci/hda/patch_realtek.c?h=v6.12.2&id=4ed7f16070a8475c088ff423b2eb11ba15eb89b6 + +[ patch description reformatted by tiwai ] + +Fixes: cc3d0b5dd989 ("ALSA: hda/realtek: Update ALC256 depop procedure") +Link: https://bugzilla.kernel.org/show_bug.cgi?id=220109 +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/5317ca723c82447a938414fcca85cbf5@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index 1352e9328ee2d..10f7f807e706e 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -3634,6 +3634,15 @@ static void alc256_shutup(struct hda_codec *codec) + hp_pin = 0x21; + + alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ ++ ++ /* 3k pull low control for Headset jack. */ ++ /* NOTE: call this before clearing the pin, otherwise codec stalls */ ++ /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly ++ * when booting with headset plugged. So skip setting it for the codec alc257 ++ */ ++ if (spec->en_3kpull_low) ++ alc_update_coef_idx(codec, 0x46, 0, 3 << 12); ++ + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + if (hp_pin_sense) { +@@ -3644,14 +3653,6 @@ static void alc256_shutup(struct hda_codec *codec) + + msleep(75); + +- /* 3k pull low control for Headset jack. */ +- /* NOTE: call this before clearing the pin, otherwise codec stalls */ +- /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly +- * when booting with headset plugged. So skip setting it for the codec alc257 +- */ +- if (spec->en_3kpull_low) +- alc_update_coef_idx(codec, 0x46, 0, 3 << 12); +- + if (!spec->no_shutup_pins) + snd_hda_codec_write(codec, hp_pin, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); +-- +2.51.0 + diff --git a/queue-5.15/series b/queue-5.15/series index 73445f21ee..de4439b15f 100644 --- a/queue-5.15/series +++ b/queue-5.15/series @@ -206,3 +206,4 @@ tools-bitmap-add-missing-asm-generic-bitsperlong.h-i.patch fbdev-add-bounds-checking-in-bit_putcs-to-fix-vmallo.patch asoc-meson-aiu-encoder-i2s-fix-bit-clock-polarity.patch ceph-add-checking-of-wait_for_completion_killable-re.patch +alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch diff --git a/queue-6.1/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch b/queue-6.1/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch new file mode 100644 index 0000000000..b0d1c7acfc --- /dev/null +++ b/queue-6.1/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch @@ -0,0 +1,74 @@ +From 20c5b16a228fc358fd8e5f2d8c85f6b7a1faad07 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 19 Aug 2025 14:03:44 +0800 +Subject: ALSA: hda/realtek: Audio disappears on HP 15-fc000 after warm boot + again + +From: Kailang Yang + +[ Upstream commit f4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb ] + +There was a similar bug in the past (Bug 217440), which was fixed for +this laptop. +The same issue is occurring again as of kernel v.6.12.2. The symptoms +are very similar - initially audio works but after a warm reboot, the +audio completely disappears until the computer is powered off (there +is no audio output at all). + +The issue is also related by caused by a different change now. By +bisecting different kernel versions, I found that reverting +cc3d0b5dd989 in patch_realtek.c[*] restores the sound and it works +fine after the reboot. + +[*] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/sound/pci/hda/patch_realtek.c?h=v6.12.2&id=4ed7f16070a8475c088ff423b2eb11ba15eb89b6 + +[ patch description reformatted by tiwai ] + +Fixes: cc3d0b5dd989 ("ALSA: hda/realtek: Update ALC256 depop procedure") +Link: https://bugzilla.kernel.org/show_bug.cgi?id=220109 +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/5317ca723c82447a938414fcca85cbf5@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index fcc22aa991748..ccbdb01ab6ece 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -3641,6 +3641,15 @@ static void alc256_shutup(struct hda_codec *codec) + hp_pin = 0x21; + + alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ ++ ++ /* 3k pull low control for Headset jack. */ ++ /* NOTE: call this before clearing the pin, otherwise codec stalls */ ++ /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly ++ * when booting with headset plugged. So skip setting it for the codec alc257 ++ */ ++ if (spec->en_3kpull_low) ++ alc_update_coef_idx(codec, 0x46, 0, 3 << 12); ++ + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + if (hp_pin_sense) { +@@ -3651,14 +3660,6 @@ static void alc256_shutup(struct hda_codec *codec) + + msleep(75); + +- /* 3k pull low control for Headset jack. */ +- /* NOTE: call this before clearing the pin, otherwise codec stalls */ +- /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly +- * when booting with headset plugged. So skip setting it for the codec alc257 +- */ +- if (spec->en_3kpull_low) +- alc_update_coef_idx(codec, 0x46, 0, 3 << 12); +- + if (!spec->no_shutup_pins) + snd_hda_codec_write(codec, hp_pin, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); +-- +2.51.0 + diff --git a/queue-6.1/series b/queue-6.1/series index 67d2e71291..4800aa6f17 100644 --- a/queue-6.1/series +++ b/queue-6.1/series @@ -298,3 +298,4 @@ fbdev-add-bounds-checking-in-bit_putcs-to-fix-vmallo.patch kbuild-uapi-strip-comments-before-size-type-check.patch asoc-meson-aiu-encoder-i2s-fix-bit-clock-polarity.patch ceph-add-checking-of-wait_for_completion_killable-re.patch +alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch diff --git a/queue-6.12/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch b/queue-6.12/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch new file mode 100644 index 0000000000..afcce635ce --- /dev/null +++ b/queue-6.12/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch @@ -0,0 +1,74 @@ +From 8acb58c212fad821a0018e09f9366146f5816f0c Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 19 Aug 2025 14:03:44 +0800 +Subject: ALSA: hda/realtek: Audio disappears on HP 15-fc000 after warm boot + again + +From: Kailang Yang + +[ Upstream commit f4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb ] + +There was a similar bug in the past (Bug 217440), which was fixed for +this laptop. +The same issue is occurring again as of kernel v.6.12.2. The symptoms +are very similar - initially audio works but after a warm reboot, the +audio completely disappears until the computer is powered off (there +is no audio output at all). + +The issue is also related by caused by a different change now. By +bisecting different kernel versions, I found that reverting +cc3d0b5dd989 in patch_realtek.c[*] restores the sound and it works +fine after the reboot. + +[*] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/sound/pci/hda/patch_realtek.c?h=v6.12.2&id=4ed7f16070a8475c088ff423b2eb11ba15eb89b6 + +[ patch description reformatted by tiwai ] + +Fixes: cc3d0b5dd989 ("ALSA: hda/realtek: Update ALC256 depop procedure") +Link: https://bugzilla.kernel.org/show_bug.cgi?id=220109 +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/5317ca723c82447a938414fcca85cbf5@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index a41df821e15f7..3b754259d2eb6 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -3656,6 +3656,15 @@ static void alc256_shutup(struct hda_codec *codec) + hp_pin = 0x21; + + alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ ++ ++ /* 3k pull low control for Headset jack. */ ++ /* NOTE: call this before clearing the pin, otherwise codec stalls */ ++ /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly ++ * when booting with headset plugged. So skip setting it for the codec alc257 ++ */ ++ if (spec->en_3kpull_low) ++ alc_update_coef_idx(codec, 0x46, 0, 3 << 12); ++ + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + if (hp_pin_sense) { +@@ -3666,14 +3675,6 @@ static void alc256_shutup(struct hda_codec *codec) + + msleep(75); + +- /* 3k pull low control for Headset jack. */ +- /* NOTE: call this before clearing the pin, otherwise codec stalls */ +- /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly +- * when booting with headset plugged. So skip setting it for the codec alc257 +- */ +- if (spec->en_3kpull_low) +- alc_update_coef_idx(codec, 0x46, 0, 3 << 12); +- + if (!spec->no_shutup_pins) + snd_hda_codec_write(codec, hp_pin, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); +-- +2.51.0 + diff --git a/queue-6.12/series b/queue-6.12/series index 615b34c713..790f7d534c 100644 --- a/queue-6.12/series +++ b/queue-6.12/series @@ -491,3 +491,4 @@ ceph-fix-multifs-mds-auth-caps-issue.patch x86-use-cmov-for-user-address-masking.patch x86-runtime-const-add-the-runtime_const_ptr-assembly.patch x86-uaccess-don-t-use-runtime-const-rewriting-in-mod.patch +alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch diff --git a/queue-6.6/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch b/queue-6.6/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch new file mode 100644 index 0000000000..aeb9d4190d --- /dev/null +++ b/queue-6.6/alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch @@ -0,0 +1,74 @@ +From be3916274e5cdfa846ade00673d3e478443f5796 Mon Sep 17 00:00:00 2001 +From: Sasha Levin +Date: Tue, 19 Aug 2025 14:03:44 +0800 +Subject: ALSA: hda/realtek: Audio disappears on HP 15-fc000 after warm boot + again + +From: Kailang Yang + +[ Upstream commit f4b3cef55f5f96fdb4e7f9ca90b7d6213689faeb ] + +There was a similar bug in the past (Bug 217440), which was fixed for +this laptop. +The same issue is occurring again as of kernel v.6.12.2. The symptoms +are very similar - initially audio works but after a warm reboot, the +audio completely disappears until the computer is powered off (there +is no audio output at all). + +The issue is also related by caused by a different change now. By +bisecting different kernel versions, I found that reverting +cc3d0b5dd989 in patch_realtek.c[*] restores the sound and it works +fine after the reboot. + +[*] https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/sound/pci/hda/patch_realtek.c?h=v6.12.2&id=4ed7f16070a8475c088ff423b2eb11ba15eb89b6 + +[ patch description reformatted by tiwai ] + +Fixes: cc3d0b5dd989 ("ALSA: hda/realtek: Update ALC256 depop procedure") +Link: https://bugzilla.kernel.org/show_bug.cgi?id=220109 +Signed-off-by: Kailang Yang +Link: https://lore.kernel.org/5317ca723c82447a938414fcca85cbf5@realtek.com +Signed-off-by: Takashi Iwai +Signed-off-by: Sasha Levin +--- + sound/pci/hda/patch_realtek.c | 17 +++++++++-------- + 1 file changed, 9 insertions(+), 8 deletions(-) + +diff --git a/sound/pci/hda/patch_realtek.c b/sound/pci/hda/patch_realtek.c +index 5fe6b71d90f4f..65c9d47f03af5 100644 +--- a/sound/pci/hda/patch_realtek.c ++++ b/sound/pci/hda/patch_realtek.c +@@ -3644,6 +3644,15 @@ static void alc256_shutup(struct hda_codec *codec) + hp_pin = 0x21; + + alc_update_coefex_idx(codec, 0x57, 0x04, 0x0007, 0x1); /* Low power */ ++ ++ /* 3k pull low control for Headset jack. */ ++ /* NOTE: call this before clearing the pin, otherwise codec stalls */ ++ /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly ++ * when booting with headset plugged. So skip setting it for the codec alc257 ++ */ ++ if (spec->en_3kpull_low) ++ alc_update_coef_idx(codec, 0x46, 0, 3 << 12); ++ + hp_pin_sense = snd_hda_jack_detect(codec, hp_pin); + + if (hp_pin_sense) { +@@ -3654,14 +3663,6 @@ static void alc256_shutup(struct hda_codec *codec) + + msleep(75); + +- /* 3k pull low control for Headset jack. */ +- /* NOTE: call this before clearing the pin, otherwise codec stalls */ +- /* If disable 3k pulldown control for alc257, the Mic detection will not work correctly +- * when booting with headset plugged. So skip setting it for the codec alc257 +- */ +- if (spec->en_3kpull_low) +- alc_update_coef_idx(codec, 0x46, 0, 3 << 12); +- + if (!spec->no_shutup_pins) + snd_hda_codec_write(codec, hp_pin, 0, + AC_VERB_SET_PIN_WIDGET_CONTROL, 0x0); +-- +2.51.0 + diff --git a/queue-6.6/series b/queue-6.6/series index 54f685960a..8c5faf5148 100644 --- a/queue-6.6/series +++ b/queue-6.6/series @@ -327,3 +327,4 @@ kbuild-uapi-strip-comments-before-size-type-check.patch asoc-meson-aiu-encoder-i2s-fix-bit-clock-polarity.patch ceph-add-checking-of-wait_for_completion_killable-re.patch ceph-refactor-wake_up_bit-pattern-of-calling.patch +alsa-hda-realtek-audio-disappears-on-hp-15-fc000-aft.patch -- 2.47.3