diff --git a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c index 90eb839f54147556015674899cf27ad644e27236..f0183d5f0d0de148bfa8c7fb1ec50feb99c5430d 100644 --- a/drivers/gpu/drm/amd/display/dc/core/dc_resource.c +++ b/drivers/gpu/drm/amd/display/dc/core/dc_resource.c @@ -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;