video: rockchip: hdmi: fix error of 8/10 bit color depth selection

Change-Id: I3c9c35dced4db9b5f103d0d3de482f33d7257ae0
Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
This commit is contained in:
Zheng Yang
2015-10-07 10:55:33 +08:00
committed by Huang, Tao
parent d50205d8d2
commit 98c0900674

View File

@@ -116,13 +116,12 @@ static void hdmi_wq_set_video(struct hdmi *hdmi)
deepcolor = hdmi->edid.deepcolor;
}
if ((hdmi->property->feature & SUPPORT_DEEP_10BIT) &&
(deepcolor & HDMI_DEEP_COLOR_30BITS)) {
if (hdmi->colordepth == HDMI_DEPP_COLOR_AUTO ||
hdmi->colordepth == 10)
video->color_output_depth = 10;
} else {
(deepcolor & HDMI_DEEP_COLOR_30BITS) &&
(hdmi->colordepth == HDMI_DEPP_COLOR_AUTO ||
hdmi->colordepth == 10))
video->color_output_depth = 10;
else
video->color_output_depth = 8;
}
}
pr_info("hdmi output corlor mode is %d\n", video->color_output);
if ((hdmi->property->feature & SUPPORT_YCBCR_INPUT) &&