drm/amd/display: 420 clock divided by 2 twice
authorCharlene Liu <charlene.liu@amd.com>
Wed, 22 Feb 2017 23:26:20 +0000 (18:26 -0500)
committerAlex Deucher <alexander.deucher@amd.com>
Tue, 26 Sep 2017 21:15:58 +0000 (17:15 -0400)
Signed-off-by: Charlene Liu <charlene.liu@amd.com>
Acked-by: Harry Wentland <Harry.Wentland@amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c

index 478c8d2..cd3942d 100644 (file)
@@ -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(