Linux Sound subsystem development
 help / color / mirror / Atom feed
From: Kai Vehmanen <kai.vehmanen@linux.intel.com>
To: Yogesh Gaur <yogesh.gaur@intel.com>
Cc: Takashi Iwai <tiwai@suse.com>,
	linux-sound@vger.kernel.org,  Jaroslav Kysela <perex@perex.cz>,
	 Kai Vehmanen <kai.vehmanen@linux.intel.com>,
	 Andy Shevchenko <andriy.shevchenko@intel.com>
Subject: Re: [PATCH 2/2] ALSA: hda/hdmi: intelhdmi: Request resume when skipping ELD notification
Date: Fri, 4 Dec 2026 19:27:09 +0200 (EET)	[thread overview]
Message-ID: <219505ae-1ace-663f-5391-00bdda32c1dc@linux.intel.com> (raw)
In-Reply-To: <20261204121330.785676-2-yogesh.gaur@intel.com>

Hey,

On Fri, 4 Dec 2026, Yogesh Gaur wrote:

> When intel_pin_eld_notify() skips a notification during system suspend
> or hibernation, the jack state is not synced after resume unless silent
> stream is enabled, because relaxed_resume is set. A monitor plugged in
> while the system sleeps is then not reported.
[...]
> --- a/sound/hda/codecs/hdmi/intelhdmi.c
> +++ b/sound/hda/codecs/hdmi/intelhdmi.c
> @@ -163,12 +163,14 @@ static void intel_pin_eld_notify(void *audio_ptr, int port, int pipe)
>  	pin_nid = intel_port2pin(codec, port);
>  	if (!pin_nid)
>  		return;
> -	/* skip notification during system suspend (but not in runtime PM);
> -	 * the state will be updated at resume
> +	/* skip notification during system suspend and hibernation (but not
> +	 * in runtime PM); states would be updated at resume request
>  	 */
>  	if (codec->core.dev.power.power_state.event == PM_EVENT_SUSPEND ||
> -	    codec->core.dev.power.power_state.event == PM_EVENT_FREEZE)
> +	    codec->core.dev.power.power_state.event == PM_EVENT_FREEZE) {
> +		codec->acomp_requested_resume = 1;
>  		return;
> +	}

thanks, looks good. This aligns behaviour with other hdmi codec variant
(added in commit c0933934d5d9 ), so seems good:

Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>

If you need to respin for any reason, you can additionally fix the code 
comment style (Andy Shevchenko noted this).

Br, Kai

  parent reply	other threads:[~2026-12-04 17:27 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-12-04 12:13 [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze Yogesh Gaur
2026-12-04 12:13 ` [PATCH 2/2] ALSA: hda/hdmi: intelhdmi: Request resume when skipping ELD notification Yogesh Gaur
2026-12-04 14:03   ` sashiko-bot
2026-12-04 17:27   ` Kai Vehmanen [this message]
2026-12-04 12:19 ` [PATCH 1/2] ALSA: hda/hdmi: intelhdmi: Skip ELD notification during hibernation freeze Kai Vehmanen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=219505ae-1ace-663f-5391-00bdda32c1dc@linux.intel.com \
    --to=kai.vehmanen@linux.intel.com \
    --cc=andriy.shevchenko@intel.com \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=yogesh.gaur@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox