mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-11 13:27:06 +09:00
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:
@@ -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) &&
|
||||
|
||||
Reference in New Issue
Block a user