ACK/Cmnt: [F/G/Unstable/OEM-5.6] [PATCH 3/3] UBUNTU: SAUCE: ALSA: hda: fix jack detection with Realtek codecs when in D3

Andrea Righi andrea.righi at
Tue Oct 13 13:19:38 UTC 2020

On Tue, Oct 13, 2020 at 03:53:55PM +0800, Kai-Heng Feng wrote:
> From: Kai Vehmanen <kai.vehmanen at>
> BugLink:
> In case HDA controller becomes active, but codec is runtime suspended,
> jack detection is not successful and no interrupt is raised. This has
> been observed with multiple Realtek codecs and HDA controllers from
> different vendors. Bug does not occur if both codec and controller are
> active, or both are in suspend. Bug can be easily hit on desktop systems
> with no built-in speaker.
> The problem can be fixed by powering up the codec once after every
> controller runtime resume. Even if codec goes back to suspend later, the
> jack detection will continue to work. Add a flag to 'hda_codec' to
> describe codecs that require this flow from the controller driver.
> Modify __azx_runtime_resume() to use pm_request_resume() to make the
> intent clearer.
> Mark all Realtek codecs with the new forced_resume flag.
> BugLink:
> Cc: Kailang Yang <kailang at>
> Co-developed-by: Kai-Heng Feng <kai.heng.feng at>
> Signed-off-by: Kai-Heng Feng <kai.heng.feng at>
> Signed-off-by: Kai Vehmanen <kai.vehmanen at>
> Cc: <stable at>
> Link:
> Signed-off-by: Takashi Iwai <tiwai at>
> (cherry picked from commit a6e7d0a4bdb02a7a3ffe0b44aaa8842b7efdd056 git:// master)

It looks like this one landed also in -next, so we can probably replace
the git URI with "linux-next" when this patch is applied.

Apart than that, looks good to me:

Acked-by: Andrea Righi <andrea.righi at>

More information about the kernel-team mailing list