From 4020fcf32b76357c84c79a07bfd77ce268775924 Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Wed, 30 Jan 2019 00:13:45 +0800 Subject: [PATCH] vpp: disable sr scale up when vskip > 2 [1/1] PD#TV-2331 Problem: SR insert unnecessary scale up to make scale down ratio too larger. Solution: disable SR core0 which is before pps when mif vskip is > 2 Verify: Locally on X301 Change-Id: I810fbae20f337e6eeb0a8e88d9758f78ad224254 Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/vpp.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/drivers/amlogic/media/video_sink/vpp.c b/drivers/amlogic/media/video_sink/vpp.c index 8bfb6824ff02..c25c17a4b755 100644 --- a/drivers/amlogic/media/video_sink/vpp.c +++ b/drivers/amlogic/media/video_sink/vpp.c @@ -1947,6 +1947,14 @@ static void vpp_set_super_scaler(const struct vinfo_s *vinfo, next_frame_par->supsc0_hori_ratio = 0; next_frame_par->supsc0_vert_ratio = 0; } + + /* much vskip case, no need super scale up */ + if (next_frame_par->vscale_skip_count >= 2) { + next_frame_par->supsc0_enable = 0; + next_frame_par->supsc0_hori_ratio = 0; + next_frame_par->supsc0_vert_ratio = 0; + } + if (bypass_sr1 || !(sr_support & SUPER_CORE1_SUPPORT)) { next_frame_par->supsc1_enable = 0; next_frame_par->supsc1_hori_ratio = 0;