mirror of
https://github.com/hardkernel/linux.git
synced 2026-06-05 18:41:58 +09:00
drm/rockchip: dw-hdmi: Set 4K x 2k 60Hz/50Hz color to YUV420 if tmdsclk over the limit
When 4K x 2k 60Hz/50Hz tmds clock is above the max tmds clock, setting its color to YUV420. A few TV edid declare that they can't support 4K x 2k 60Hz/50Hz YUV420, we still set color to YUV420 or 4K x 2k 60Hz/50Hz tmds clock will over the limit. Change-Id: Id57c9313ab52973927c578d0eb2a7b1b30cb9ec1 Signed-off-by: Algea Cao <algea.cao@rock-chips.com>
This commit is contained in:
@@ -668,11 +668,11 @@ dw_hdmi_rockchip_select_output(struct drm_connector_state *conn_state,
|
||||
if (max_tmds_clock >= 594000) {
|
||||
*color_depth = 8;
|
||||
} else if (max_tmds_clock > 340000) {
|
||||
if (drm_mode_is_420(info, mode))
|
||||
if (drm_mode_is_420(info, mode) || tmdsclock >= 594000)
|
||||
*color_format = DRM_HDMI_OUTPUT_YCBCR420;
|
||||
} else {
|
||||
*color_depth = 8;
|
||||
if (drm_mode_is_420(info, mode))
|
||||
if (drm_mode_is_420(info, mode) || tmdsclock >= 594000)
|
||||
*color_format = DRM_HDMI_OUTPUT_YCBCR420;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user