drm/vc4: hdmi: Set VC4_HDMI_MAI_CONFIG_FORMAT_REVERSE
authorDom Cobley <popcornmix@gmail.com>
Tue, 25 May 2021 13:23:50 +0000 (15:23 +0200)
committerMaxime Ripard <maxime@cerno.tech>
Wed, 23 Jun 2021 12:32:28 +0000 (14:32 +0200)
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
drivers/gpu/drm/vc4/vc4_hdmi.c

index ffe824a88b34688b9eee0c9648ffa85ed9d99c4c..e310a10bdba6bb38ec3649dd06246ef161dd4519 100644 (file)
@@ -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);