ASoC: hdmi-codec: Add a prepare hook
authorMaxime Ripard <maxime@cerno.tech>
Tue, 25 May 2021 13:23:47 +0000 (15:23 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 10 Jun 2021 09:48:56 +0000 (11:48 +0200)
commit2fef64eec23a0840c97977b16dd8919afaffa876
treea68df13178379d6cc406dbfbf145417360f4b91c
parent7a8e1d44211e16eb394b7b9e0b236ee1503a3ad3
ASoC: hdmi-codec: Add a prepare hook

The IEC958 status bit is usually set by the userspace after hw_params
has been called, so in order to use whatever is set by the userspace, we
need to implement the prepare hook. Let's add it to the hdmi_codec_ops,
and mandate that either prepare or hw_params is implemented.

Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Acked-by: Mark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210525132354.297468-6-maxime@cerno.tech
include/sound/hdmi-codec.h
sound/soc/codecs/hdmi-codec.c