Linux kernel -stable discussions
 help / color / mirror / Atom feed
* [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze
@ 2026-12-04 12:13 Yogesh Gaur
  2026-12-04 12:19 ` Kai Vehmanen
  0 siblings, 1 reply; 2+ messages in thread
From: Yogesh Gaur @ 2026-12-04 12:13 UTC (permalink / raw)
  To: Takashi Iwai, linux-sound; +Cc: Jaroslav Kysela, Kai Vehmanen, stable

intel_pin_eld_notify() skips ELD notifications in PM_EVENT_SUSPEND but
not in PM_EVENT_FREEZE. On hibernation restore, i915 resumes before the
codec, so the notification enables the silent stream on a codec whose
controller is not restored yet. The verbs time out and resume takes
about 35 seconds longer on Meteor Lake.

Skip the notification in FREEZE too, as is done for SUSPEND.

Fixes: 0c37e2eb6b83 ("ALSA: hda/hdmi: fix race in handling acomp ELD notification at resume")
Cc: stable@vger.kernel.org
Closes: https://bugzilla.kernel.org/show_bug.cgi?id=222335
Assisted-by: LLM
Signed-off-by: Yogesh Gaur <yogesh.gaur@intel.com>
---
 sound/hda/codecs/hdmi/intelhdmi.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/sound/hda/codecs/hdmi/intelhdmi.c b/sound/hda/codecs/hdmi/intelhdmi.c
index 73141046d502..46dcc3e50fb3 100644
--- a/sound/hda/codecs/hdmi/intelhdmi.c
+++ b/sound/hda/codecs/hdmi/intelhdmi.c
@@ -166,7 +166,8 @@ static void intel_pin_eld_notify(void *audio_ptr, int port, int pipe)
 	/* skip notification during system suspend (but not in runtime PM);
 	 * the state will be updated at resume
 	 */
-	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND)
+	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND ||
+	    codec->core.dev.power.power_state.event == PM_EVENT_FREEZE)
 		return;
 
 	snd_hdac_i915_set_bclk(&codec->bus->core);

base-commit: fe6ff8d5d675c01793b9f051d16055dd4aa75244
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze
  2026-12-04 12:13 [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze Yogesh Gaur
@ 2026-12-04 12:19 ` Kai Vehmanen
  0 siblings, 0 replies; 2+ messages in thread
From: Kai Vehmanen @ 2026-12-04 12:19 UTC (permalink / raw)
  To: Yogesh Gaur
  Cc: Takashi Iwai, linux-sound, Jaroslav Kysela, Kai Vehmanen, stable

Hey,

On Fri, 4 Dec 2026, Yogesh Gaur wrote:

> intel_pin_eld_notify() skips ELD notifications in PM_EVENT_SUSPEND but
> not in PM_EVENT_FREEZE. On hibernation restore, i915 resumes before the
> codec, so the notification enables the silent stream on a codec whose
> controller is not restored yet. The verbs time out and resume takes
> about 35 seconds longer on Meteor Lake.
> 
> Skip the notification in FREEZE too, as is done for SUSPEND.
[...]
> --- a/sound/hda/codecs/hdmi/intelhdmi.c
> +++ b/sound/hda/codecs/hdmi/intelhdmi.c
> @@ -166,7 +166,8 @@ static void intel_pin_eld_notify(void *audio_ptr, int port, int pipe)
>  	/* skip notification during system suspend (but not in runtime PM);
>  	 * the state will be updated at resume
>  	 */
> -	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND)
> +	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND ||
> +	    codec->core.dev.power.power_state.event == PM_EVENT_FREEZE)
>  		return;

thanks, looks good:
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

Br, Kai

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-12-04 12:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-12-04 12:13 [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze Yogesh Gaur
2026-12-04 12:19 ` Kai Vehmanen

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox