[PATCH 03/15] drm/amd/display: 420 clock divided by 2 twice
Harry Wentland
harry.wentland at amd.com
Wed Mar 1 00:26:08 UTC 2017
From: Charlene Liu <charlene.liu at amd.com>
Change-Id: I1bd1e091f1e9e3915997d3f216eadd429b605563
Signed-off-by: Charlene Liu <charlene.liu at amd.com>
Acked-by: Harry Wentland <Harry.Wentland at amd.com>
Reviewed-by: Krunoslav Kovac <Krunoslav.Kovac at amd.com>
---
drivers/gpu/drm/amd/display/dc/dce110/dce110_resource.c | 3 +++
1 file changed, 3 insertions(+)
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 478c8d27f3bd..cd3942df70a7 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(
--
2.9.3
More information about the amd-gfx
mailing list