From: Yakir Yang Date: Mon, 23 Mar 2015 02:44:12 +0000 (+0800) Subject: CHROMIUM: drm: bridge/dw_hdmi: assign CD field to zero X-Git-Tag: firefly_0821_release~137 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=172e5e89c325e279a46f05d4e6655abac129705e;p=firefly-linux-kernel-4.4.55.git CHROMIUM: drm: bridge/dw_hdmi: assign CD field to zero When the color depth is 24 bits per pixel video, the CD field in General Control Packet should be "Color Depth not indicated", then the colordepth in register vp_pr_cd & csc_scale should assign to zero. Signed-off-by: Yakir Yang BUG=chrome-os-partner:38212 TEST=speedy board, Test with Agilent Technologies U4002A HDMI Protocal Analyzer Change-Id: Ifd5767d339fdbff11e234ec0891c8f3df1dd66a5 Reviewed-on: https://chromium-review.googlesource.com/261850 Reviewed-by: Daniel Kurtz Tested-by: Yakir Yang Commit-Queue: Yakir Yang Signed-off-by: Zheng Yang --- diff --git a/drivers/gpu/drm/bridge/dw-hdmi.c b/drivers/gpu/drm/bridge/dw-hdmi.c index d05e1095a0ec..3aa550748b11 100644 --- a/drivers/gpu/drm/bridge/dw-hdmi.c +++ b/drivers/gpu/drm/bridge/dw-hdmi.c @@ -923,7 +923,7 @@ static void hdmi_video_packetize(struct dw_hdmi *hdmi) if (!hdmi_data->enc_color_depth) { output_select = HDMI_VP_CONF_OUTPUT_SELECTOR_BYPASS; } else if (hdmi_data->enc_color_depth == 8) { - color_depth = 4; + color_depth = 0; output_select = HDMI_VP_CONF_OUTPUT_SELECTOR_BYPASS; } else if (hdmi_data->enc_color_depth == 10) { color_depth = 5;