OSDN Git Service

ASoC: hdmi-codec: Add iec958 controls
authorMaxime Ripard <maxime@cerno.tech>
Tue, 25 May 2021 13:23:46 +0000 (15:23 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Thu, 10 Jun 2021 09:48:49 +0000 (11:48 +0200)
commit7a8e1d44211e16eb394b7b9e0b236ee1503a3ad3
tree1957fb65cc798dfd720d4cb9a6d0895e19a4f00c
parent366b45b974481bea9603843d308aded519aab7dc
ASoC: hdmi-codec: Add iec958 controls

The IEC958 status bits can be exposed and modified by the userspace
through dedicated ALSA controls.

This patch implements those controls for the hdmi-codec driver. It
relies on a default value being setup at probe time that can later be
overridden by the control put.

The hw_params callback is then called with a buffer filled with the
proper bits for the current parameters being passed on so the underlying
driver can just reuse those bits as is.

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