ASoC: hdmi-codec: Add a prepare hook
authorMaxime Ripard <maxime@cerno.tech>
Fri, 30 Apr 2021 12:22:06 +0000 (14:22 +0200)
committerPhil Elwell <8911409+pelwell@users.noreply.github.com>
Wed, 16 Jun 2021 16:07:02 +0000 (17:07 +0100)
commit1c6d08e73ba09ed251e273b7324d7c6c7e85159d
treee1b8edd5417dfdee82ab50c91b1214742f229d72
parentfa0f77fcadddc09e8ab009b296610648a14a8809
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>
include/sound/hdmi-codec.h
sound/soc/codecs/hdmi-codec.c