From ceb0a86fe38bc3ba595ca15f3e090da8d37611f6 Mon Sep 17 00:00:00 2001 From: yao liu Date: Wed, 14 Aug 2019 04:34:49 -0400 Subject: [PATCH] dolby: Display flickers with garbage image [1/1] PD#OTT-5577 Problem: when scale down, scaler+dolby h-timing too tight Solution: reduce htotal_add to 0xc0 when 4k output Verify: u212 Change-Id: I190ec235370d9ed75f9c1f477c1419c383b0a8e7 Signed-off-by: yao liu --- drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c index 32b4a9b..92e5684 100644 --- a/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c +++ b/drivers/amlogic/media/enhancement/amdolby_vision/amdolby_vision.c @@ -2631,6 +2631,10 @@ static void adjust_vpotch(void) g_vpotch = 0x60; else g_vpotch = 0x20; + if (vinfo->width > 1920) + htotal_add = 0xc0; + else + htotal_add = 0x140; } else g_vpotch = 0x20; } else if (is_meson_tm2_stbmode()) { -- 2.7.4