drm/sti: HDMI infoframe transmission mode not take into account
authorVincent Abriou <vincent.abriou@st.com>
Tue, 2 Feb 2016 16:03:57 +0000 (17:03 +0100)
committerVincent Abriou <vincent.abriou@st.com>
Fri, 26 Feb 2016 09:06:18 +0000 (10:06 +0100)
Set the infoframe transmission mode according to the type of
the infoframe.

Signed-off-by: Vincent Abriou <vincent.abriou@st.com>
Reviewed-by: Benjamin Gaignard <benjamin.gaignard@linaro.org>
drivers/gpu/drm/sti/sti_hdmi.c

index cd501563c0cc58f83b9992e7e83e09e048dfd32a..8537852f0984409f4847222d8e1413f8ffecfd93 100644 (file)
@@ -321,7 +321,7 @@ static void hdmi_infoframe_write_infopack(struct sti_hdmi *hdmi, const u8 *data)
 
        /* Enable transmission slot for updated infoframe */
        val = hdmi_read(hdmi, HDMI_SW_DI_CFG);
-       val |= HDMI_IFRAME_CFG_DI_N(HDMI_IFRAME_FIELD, slot);
+       val |= HDMI_IFRAME_CFG_DI_N(mode, slot);
        hdmi_write(hdmi, val, HDMI_SW_DI_CFG);
 }