提交 e5f2038e 编写于 作者: C Charlene Liu 提交者: Alex Deucher

drm/amd/display: w/a no color space info for HDMI when build AVI

Signed-off-by: NCharlene Liu <charlene.liu@amd.com>
Reviewed-by: NAric Cyr <Aric.Cyr@amd.com>
Acked-by: NHarry Wentland <Harry.Wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 866294f8
......@@ -1605,6 +1605,9 @@ static void set_avi_info_frame(
union hdmi_info_packet *hdmi_info = &info_frame.avi_info_packet.info_packet_hdmi;
color_space = pipe_ctx->stream->public.output_color_space;
if (color_space == COLOR_SPACE_UNKNOWN)
color_space = (stream->public.timing.pixel_encoding == PIXEL_ENCODING_RGB)?
COLOR_SPACE_SRGB:COLOR_SPACE_YCBCR709;
/* Initialize header */
hdmi_info->bits.header.info_frame_type = HDMI_INFOFRAME_TYPE_AVI;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册