Skip to content

Commit 71424dc

Browse files
gugulotmichalsimek
authored andcommitted
drm: xlnx: hdmi: Fix TMDS clock calculation for RGB YUV422 YUV444 formats
In case of 10bpc and above RGB, YUV422 and YUV444 formats are not working due to the wrong condition check. As per the HDMI 1.4 specification section 6.5, the color depth for YUV422 is always 12 bpc, so pixels are carried at a rate of one pixel for TMDS clock. TMDS clock calculation for RGB and YUV444 are done based on color depth. Signed-off-by: Rajesh Gugulothu <rajesh.gugulothu@amd.com> Reviewed-by: Vishal Sagar <vishal.sagar@amd.com>
1 parent 7d4acfb commit 71424dc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎drivers/gpu/drm/xlnx/xlnx_hdmi.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3115,7 +3115,7 @@ static u64 xlnx_hdmi_get_tmdsclk(struct xlnx_hdmi *hdmi, struct drm_display_mode
31153115
if (hdmi->xvidc_colorfmt == HDMI_TX_CSF_YCRCB_420)
31163116
tmdsclk = tmdsclk >> 1;
31173117

3118-
if (hdmi->xvidc_colorfmt == HDMI_TX_CSF_YCRCB_422) {
3118+
if (hdmi->xvidc_colorfmt != HDMI_TX_CSF_YCRCB_422) {
31193119
switch (hdmi->config.bpc) {
31203120
case HDMI_TX_BPC_10:
31213121
tmdsclk = (tmdsclk * 5) >> 2;

0 commit comments

Comments
 (0)