Skip to content

Commit 90fe82f

Browse files
Zheng Yangrkhuangtao
authored andcommitted
drm/rockchip: inno_hdmi: set avi colorimetry and scan_mode
Accroding to CTA-861, a Source shall set scan_mode = 1 or scan_mode = 2 if it is confident of the accuracy of those values. Otherwise, it shall set zero(no data). By default, an SD Video Format shall be encoded according to SMPTE 170M [1] color space, an HD Video Format shall be encoded according to ITU-R BT.709 [7] color space. And a Source shall be prohibited from setting colorimetry to 1 or 2 when colorspace is RGB. Change-Id: I0da867cca5b757b3abcac69ff71616f990f2b7bb Signed-off-by: Zheng Yang <zhengyang@rock-chips.com>
1 parent c28a16d commit 90fe82f

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

drivers/gpu/drm/rockchip/inno_hdmi.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -317,6 +317,11 @@ static int inno_hdmi_config_video_avi(struct inno_hdmi *hdmi,
317317
else
318318
frame.avi.colorspace = HDMI_COLORSPACE_RGB;
319319

320+
if (frame.avi.colorspace != HDMI_COLORSPACE_RGB)
321+
frame.avi.colorimetry = hdmi->hdmi_data.colorimetry;
322+
323+
frame.avi.scan_mode = HDMI_SCAN_MODE_NONE;
324+
320325
return inno_hdmi_upload_frame(hdmi, rc, &frame, INFOFRAME_AVI, 0, 0, 0);
321326
}
322327

0 commit comments

Comments
 (0)