]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ENGR00179575 only set color depth if TV supports deep color
authorAlan Tull <r80115@freescale.com>
Mon, 9 Apr 2012 19:36:07 +0000 (14:36 -0500)
committerLothar Waßmann <LW@KARO-electronics.de>
Fri, 24 May 2013 06:34:26 +0000 (08:34 +0200)
If TV's EDID indicates that deep color is not supported, then
write color depth field of HDMI_VP_PR_CD register to zero.

Signed-off-by: Alan Tull <r80115@freescale.com>
drivers/video/mxc_hdmi.c

index ad6d7139eaa87e7ef5c5cabd086f57e4d67eafec..fc5df129bcb16782d9df6e951d77fc794ec639f0 100644 (file)
@@ -570,6 +570,10 @@ static void hdmi_video_packetize(struct mxc_hdmi *hdmi)
        } else
                return;
 
+       if (!hdmi->edid_cfg.vsd_dc_48bit && !hdmi->edid_cfg.vsd_dc_36bit &&
+               !hdmi->edid_cfg.vsd_dc_30bit && !hdmi->edid_cfg.vsd_dc_y444)
+               color_depth = 0;
+
        /* set the packetizer registers */
        val = ((color_depth << HDMI_VP_PR_CD_COLOR_DEPTH_OFFSET) &
                HDMI_VP_PR_CD_COLOR_DEPTH_MASK) |