]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: hda/hdmi: Don't skip notification handling during PM operation
authorTakashi Iwai <tiwai@suse.de>
Sat, 1 Oct 2022 07:48:10 +0000 (09:48 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 26 Oct 2022 11:22:31 +0000 (13:22 +0200)
commit49f573bc16f7abad3bdf31a382bd5305fefed035
tree1a853534a348f552bbaeffa00cb9f035d5b7dbc9
parent42a6dca565b0589e562314a24c2941b490c47413
ALSA: hda/hdmi: Don't skip notification handling during PM operation

[ Upstream commit 41d5f66e35de00f002fee3f85d4485a2741b1fe3 ]

The HDMI driver skips the notification handling from the graphics
driver when the codec driver is being in the PM operation.  This
behavior was introduced by the commit 97991ea49c03 ("ALSA: hda - Skip
ELD notification during PM process").  This skip may cause a problem,
as we may miss the ELD update when the connection/disconnection
happens right at the runtime-PM operation of the audio codec.

Although this workaround was valid at that time, it's no longer true;
the fix was required just because the ELD update procedure needed to
wake up the audio codec, which had lead to a runtime-resume during a
runtime-suspend.  Meanwhile, the ELD update procedure doesn't need a
codec wake up any longer since the commit 53b8ca7bb9d7 ("ALSA: hda -
Use component ops for i915 HDMI/DP audio jack handling"); i.e. there
is no much reason for skipping the notification.

Let's drop those checks for addressing the missing notification.

Fixes: 53b8ca7bb9d7 ("ALSA: hda - Use component ops for i915 HDMI/DP audio jack handling")
Reported-by: Brent Lu <brent.lu@intel.com>
Link: https://lore.kernel.org/r/20220927135807.4097052-1-brent.lu@intel.com
Link: https://lore.kernel.org/r/20221001074809.7461-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/pci/hda/patch_hdmi.c