drm/exynos/hdmi: fix VSI infoframe registers
authorAndrzej Hajda <a.hajda@samsung.com>
Mon, 5 Dec 2016 13:32:07 +0000 (14:32 +0100)
committerSeung-Woo Kim <sw0312.kim@samsung.com>
Wed, 14 Dec 2016 04:54:17 +0000 (13:54 +0900)
VSI infoframe registers address space is non-contiguous, so infoframe write
should be split into two chunks.

Change-Id: I40b4598dd64ec205d85a6f99828e2f22ae568918
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
drivers/gpu/drm/exynos/exynos_hdmi.c

index 9bc93b5c93aa28ba277e614e72a4622a5b3854ef..206d94566e4772c8967a5c7736b5407aa9b9b5c5 100644 (file)
@@ -850,7 +850,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);