diff options
Diffstat (limited to 'meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0544-drm-amd-display-w-a-no-color-space-info-for-HDMI-whe.patch')
-rw-r--r-- | meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0544-drm-amd-display-w-a-no-color-space-info-for-HDMI-whe.patch | 31 |
1 files changed, 31 insertions, 0 deletions
diff --git a/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0544-drm-amd-display-w-a-no-color-space-info-for-HDMI-whe.patch b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0544-drm-amd-display-w-a-no-color-space-info-for-HDMI-whe.patch new file mode 100644 index 00000000..c22621a2 --- /dev/null +++ b/meta-v1000/recipes-kernel/linux/linux-yocto-4.14.71/0544-drm-amd-display-w-a-no-color-space-info-for-HDMI-whe.patch @@ -0,0 +1,31 @@ +From d6c936f8d46d8390a5d5d222ffdadad0fb9014c9 Mon Sep 17 00:00:00 2001 +From: Charlene Liu <charlene.liu@amd.com> +Date: Sat, 24 Jun 2017 16:01:37 -0400 +Subject: [PATCH 0544/4131] 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> +--- + drivers/gpu/drm/amd/display/dc/core/dc_resource.c | 3 +++ + 1 file changed, 3 insertions(+) + +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 a4c8c43..9aff47e 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; +-- +2.7.4 + |