]> git.karo-electronics.de Git - linux-beck.git/blobdiff - drivers/gpu/drm/bridge/dw-hdmi.c
drm: bridge/dw-hdmi: Fix colorspace and scan information registers values
[linux-beck.git] / drivers / gpu / drm / bridge / dw-hdmi.c
index 77ab47341658a2e109b323ee9393fc5456bdda12..cdf39aa3943cc1de551070c2e2eac0d2a006ac44 100644 (file)
@@ -940,10 +940,11 @@ static void hdmi_config_AVI(struct dw_hdmi *hdmi, struct drm_display_mode *mode)
         */
 
        /*
-        * AVI data byte 1 differences: Colorspace in bits 4,5 rather than 5,6,
-        * active aspect present in bit 6 rather than 4.
+        * AVI data byte 1 differences: Colorspace in bits 0,1 rather than 5,6,
+        * scan info in bits 4,5 rather than 0,1 and active aspect present in
+        * bit 6 rather than 4.
         */
-       val = (frame.colorspace & 3) << 4 | (frame.scan_mode & 0x3);
+       val = (frame.scan_mode & 3) << 4 | (frame.colorspace & 3);
        if (frame.active_aspect & 15)
                val |= HDMI_FC_AVICONF0_ACTIVE_FMT_INFO_PRESENT;
        if (frame.top_bar || frame.bottom_bar)