diff options
author | Dom Cobley <popcornmix@gmail.com> | 2021-05-25 15:23:50 +0200 |
---|---|---|
committer | Maxime Ripard <maxime@cerno.tech> | 2021-06-23 14:32:28 +0200 |
commit | 9a8fd277a82c2ac7d6af7422088de6c469419cc4 (patch) | |
tree | 55217fa1b9ed7f0fe08d69935d147ca904bbb428 /drivers | |
parent | drm/vc4: hdmi: Set HDMI_MAI_FMT (diff) | |
download | linux-9a8fd277a82c2ac7d6af7422088de6c469419cc4.tar.xz linux-9a8fd277a82c2ac7d6af7422088de6c469419cc4.zip |
drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE
Without this bit set, HDMI_MAI_FORMAT doesn't pick up
the format and samplerate from DVP_CFG_MAI0_FMT and you
can't get HDMI_HDMI_13_AUDIO_STATUS_1 to indicate HBR mode
Signed-off-by: Dom Cobley <popcornmix@gmail.com>
Signed-off-by: Maxime Ripard <maxime@cerno.tech>
Reviewed-by: Nicolas Saenz Julienne <nsaenz@kernel.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20210525132354.297468-9-maxime@cerno.tech
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/gpu/drm/vc4/vc4_hdmi.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/gpu/drm/vc4/vc4_hdmi.c b/drivers/gpu/drm/vc4/vc4_hdmi.c index ffe824a88b34..e310a10bdba6 100644 --- a/drivers/gpu/drm/vc4/vc4_hdmi.c +++ b/drivers/gpu/drm/vc4/vc4_hdmi.c @@ -1399,6 +1399,7 @@ static int vc4_hdmi_audio_hw_params(struct snd_pcm_substream *substream, HDMI_WRITE(HDMI_MAI_CONFIG, VC4_HDMI_MAI_CONFIG_BIT_REVERSE | + VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE | VC4_SET_FIELD(channel_mask, VC4_HDMI_MAI_CHANNEL_MASK)); channel_map = vc4_hdmi->variant->channel_map(vc4_hdmi, channel_mask); |