]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
drm/exynos/hdmi: fix VSI infoframe registers
authorAndrzej Hajda <a.hajda@samsung.com>
Fri, 20 Jan 2017 06:52:20 +0000 (07:52 +0100)
committerInki Dae <inki.dae@samsung.com>
Tue, 7 Feb 2017 04:52:50 +0000 (13:52 +0900)
VSI infoframe registers address space is non-contiguous, so infoframe write
should be split into two chunks.

Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index bef8965c9f5371c020b2ffe6d298d185c433867d..223b872f461b4887e740edcace25d186811d764e 100644 (file)
@@ -797,7 +797,8 @@ static void hdmi_reg_infoframes(struct hdmi_context *hdata)
                                sizeof(buf));
        if (ret > 0) {
                hdmi_reg_writeb(hdata, HDMI_VSI_CON, HDMI_VSI_CON_EVERY_VSYNC);
-               hdmi_reg_write_buf(hdata, HDMI_VSI_HEADER0, buf, ret);
+               hdmi_reg_write_buf(hdata, HDMI_VSI_HEADER0, buf, 3);
+               hdmi_reg_write_buf(hdata, HDMI_VSI_DATA(0), buf + 3, ret - 3);
        }
 
        ret = hdmi_audio_infoframe_init(&frm.audio);