]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
ASoC: hdmi-codec: register hpd callback on component probe
authorJerome Brunet <jbrunet@baylibre.com>
Mon, 6 Nov 2023 10:40:11 +0000 (11:40 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 20 Nov 2023 10:08:30 +0000 (11:08 +0100)
commit9cf044cc36c1dcc285d971bb8662bd8fea604765
treef8fcb9f8e9475078642b93c25e76cc9745691945
parent705e5a28ec1d369e71ee92ac14d65da992cda5c8
ASoC: hdmi-codec: register hpd callback on component probe

[ Upstream commit 15be353d55f9e12e34f9a819f51eb41fdef5eda8 ]

The HDMI hotplug callback to the hdmi-codec is currently registered when
jack is set.

The hotplug not only serves to report the ASoC jack state but also to get
the ELD. It should be registered when the component probes instead, so it
does not depend on the card driver registering a jack for the HDMI to
properly report the ELD.

Fixes: 25ce4f2b3593 ("ASoC: hdmi-codec: Get ELD in before reporting plugged event")
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Link: https://lore.kernel.org/r/20231106104013.704356-1-jbrunet@baylibre.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
sound/soc/codecs/hdmi-codec.c