From: Charlene Liu Date: Wed, 22 Feb 2017 23:26:20 +0000 (-0500) Subject: drm/amd/display: 420 clock divided by 2 twice X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=d5b4f2bcff03c6cafb0a890360f1f8fbc99071a1;p=linux.git drm/amd/display: 420 clock divided by 2 twice Signed-off-by: Charlene Liu Acked-by: Harry Wentland Reviewed-by: Krunoslav Kovac Signed-off-by: Alex Deucher --- diff --git a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c index 478c8d27f3bd3..cd3942df70a7b 100644 --- a/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c +++ b/drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c @@ -780,6 +780,9 @@ static void get_pixel_clock_parameters( if (stream->public.timing.pixel_encoding == PIXEL_ENCODING_YCBCR422) { pixel_clk_params->color_depth = COLOR_DEPTH_888; } + if (stream->public.timing.pixel_encoding == PIXEL_ENCODING_YCBCR420) { + pixel_clk_params->requested_pix_clk = pixel_clk_params->requested_pix_clk / 2; + } } void dce110_resource_build_bit_depth_reduction_params(