From 5cc13152479b663197de91e749fc566f4d1d6d91 Mon Sep 17 00:00:00 2001 From: Alan Tull Date: Mon, 9 Apr 2012 14:36:07 -0500 Subject: [PATCH] ENGR00179575 only set color depth if TV supports deep color 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 --- drivers/video/mxc_hdmi.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/video/mxc_hdmi.c b/drivers/video/mxc_hdmi.c index ad6d7139eaa8..fc5df129bcb1 100644 --- a/drivers/video/mxc_hdmi.c +++ b/drivers/video/mxc_hdmi.c @@ -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) | -- 2.39.5