diff options
| author | Charlene Liu <charlene.liu@amd.com> | 2017-06-24 16:01:37 -0400 |
|---|---|---|
| committer | Alex Deucher <alexander.deucher@amd.com> | 2017-09-26 18:08:15 -0400 |
| commit | e5f2038ef12cf5606ec3d7c79e2539cafcb409dd (patch) | |
| tree | 798297baf6d946acc87a4ac364cbe95850047392 /drivers/gpu/drm | |
| parent | drm/amd/display: Don't program scaler if we have no surface (diff) | |
| download | linux-e5f2038ef12cf5606ec3d7c79e2539cafcb409dd.tar.gz linux-e5f2038ef12cf5606ec3d7c79e2539cafcb409dd.zip | |
drm/amd/display: w/a no color space info for HDMI when build AVI
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Reviewed-by: Aric Cyr <Aric.Cyr@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Diffstat (limited to 'drivers/gpu/drm')
| -rw-r--r-- | drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 |
1 files changed, 3 insertions, 0 deletions
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 90eb839f5414..f0183d5f0d0d 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; |
