Commit 21e97dfa authored by Maxime Ripard's avatar Maxime Ripard Committed by Treehugger Robot
Browse files

UPSTREAM: 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.

Bug: 239396464
Change-Id: I99f37b7e74655687e73a75ba19fd2de8041f8646
Signed-off-by: default avatarMaxime Ripard <maxime@cerno.tech>
Acked-by: default avatarMark Brown <broonie@kernel.org>
Link: https://lore.kernel.org/r/20210525132354.297468-5-maxime@cerno.tech


Signed-off-by: default avatarSugar Zhang <sugar.zhang@rock-chips.com>
(cherry picked from commit 7a8e1d44)
parent 9e9d2669
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment