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
This commit is contained in:
Maxime Ripard 2021-05-25 15:23:47 +02:00
commit 2fef64eec2
No known key found for this signature in database
GPG key ID: E3EF0D6F671851C5
2 changed files with 98 additions and 24 deletions