Re: [PATCH] ALSA: hda: Force resume if acomp notified during system suspend
From: Takashi Iwai
Date: Mon Jun 29 2026 - 06:39:37 EST
On Fri, 26 Jun 2026 17:47:22 +0200,
Nícolas F. R. A. Prado wrote:
>
> Currently if an HDMI cable is connected while the system is suspended,
> the HDMI audio jack status stays off after resume.
>
> This is due to the jack state not being synced by the HDA HDMI codec
> device's runtime resume, as that never happens if the device was runtime
> suspended before the system suspended, or by the acomp notification
> triggered from the DRM side if that happens before the HDA HDMI codec
> device has resumed.
>
> To fix this, if snd_hda_hdmi_acomp_pin_eld_notify() gets called before
> the HDA HDMI codec device has resumed, mark it to be forcefully runtime
> resumed at the next PM complete time.
>
> Do this using a separate acomp_requested_resume flag that can be
> temporarily set without overwriting forced_resume for drivers that
> always want to force resume.
>
> Assisted-by: Copilot:claude-sonnet-4.6
> Signed-off-by: Nícolas F. R. A. Prado <nfraprado@xxxxxxxxxxxxx>
Applied to for-next branch now. Thanks.
Takashi