Commit 73d985d1 authored by Jerome Brunet's avatar Jerome Brunet Committed by Lee Jones
Browse files

UPSTREAM: ASoC: hdmi-codec: fix missing report for jack initial status



This fixes a problem introduced while fixing ELD reporting with no jack
set.

Most driver using the hdmi-codec will call the 'plugged_cb' callback
directly when registered to report the initial state of the HDMI connector.

With the commit mentionned, this occurs before jack is ready and the
initial report is lost for platforms actually providing a jack for HDMI.

Fix this by storing the hdmi connector status regardless of jack being set
or not and report the last status when jack gets set.

With this, the initial state is reported correctly even if it is
disconnected. This was not done initially and is also a fix.

Bug: 254441685
Fixes: 15be353d ("ASoC: hdmi-codec: register hpd callback on component probe")
Reported-by: default avatarZhengqiao Xia <xiazhengqiao@huaqin.corp-partner.google.com>
Closes: https://lore.kernel.org/alsa-devel/CADYyEwTNyY+fR9SgfDa-g6iiDwkU3MUdPVCYexs2_3wbcM8_vg@mail.gmail.com/


Cc: Hsin-Yi Wang <hsinyi@google.com>
Tested-by: default avatarZhengqiao Xia <xiazhengqiao@huaqin.corp-partner.google.com>
Signed-off-by: default avatarJerome Brunet <jbrunet@baylibre.com>
Link: https://msgid.link/r/20231218145655.134929-1-jbrunet@baylibre.com


Signed-off-by: default avatarMark Brown <broonie@kernel.org>
(cherry picked from commit 025222a9)
Signed-off-by: default avatarLee Jones <joneslee@google.com>
Change-Id: I2f0f8e52bde5f0fa2cafb4a78b31637e140e560a
parent 1aa6d763
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment