From: Brian Zhu Date: Sun, 11 Mar 2018 10:50:36 +0000 (+0800) Subject: vpp: disable pps as default when scaler ratio is 1:1 X-Git-Tag: khadas-vims-v0.9.6-release~2319 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b75aec8be8a601a79a6bb09de273eb85006a3a4e;p=platform%2Fkernel%2Flinux-amlogic.git 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 --- 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);