From b75aec8be8a601a79a6bb09de273eb85006a3a4e Mon Sep 17 00:00:00 2001 From: Brian Zhu Date: Sun, 11 Mar 2018 18:50:36 +0800 Subject: [PATCH] vpp: disable pps as default when scaler ratio is 1:1 PD#161937: vpp: disable pps as default when scaler ratio is 1:1 Change-Id: Iabec01db371218c954bfdae25dfea5292acae3e2 Signed-off-by: Brian Zhu --- drivers/amlogic/media/video_sink/video.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/video_sink/video.c b/drivers/amlogic/media/video_sink/video.c index 5cdde6a..71b11ab 100644 --- a/drivers/amlogic/media/video_sink/video.c +++ b/drivers/amlogic/media/video_sink/video.c @@ -141,7 +141,7 @@ static DEFINE_MUTEX(omx_mutex); static bool bypass_cm; -static bool bypass_pps; +static bool bypass_pps = true; /*For 3D usage ----0: mbx 1: tv */ bool platform_type = 1; @@ -5178,6 +5178,8 @@ SET_FILTER: /* for bypass pps debug */ if ((vpp_filter->vpp_hsc_start_phase_step == 0x1000000) && (vpp_filter->vpp_vsc_start_phase_step == 0x1000000) && + !vpp_filter->vpp_pre_vsc_en && + !vpp_filter->vpp_pre_hsc_en && bypass_pps) VSYNC_WR_MPEG_REG_BITS(VPP_SC_MISC + cur_dev->vpp_off, 0, VPP_SC_TOP_EN_BIT, VPP_SC_TOP_EN_WID); -- 2.7.4