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)
committerMark Brown <broonie@kernel.org>
Mon, 6 Nov 2023 10:57:03 +0000 (10:57 +0000)
commit15be353d55f9e12e34f9a819f51eb41fdef5eda8
treedc39a8f68ab347c0457d860de1f64655f866a6ef
parent004fc58edea6f00db9ad07b40b882e8d976f7a54
ASoC: hdmi-codec: register hpd callback on component probe

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>
sound/soc/codecs/hdmi-codec.c