From: Jihong Sui Date: Wed, 4 Sep 2019 04:16:31 +0000 (+0800) Subject: deinterlace: add condition for switch to EI in de_post_process [1/1] X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1b58714ec4e2ac22b5ba732a228a2edc8685fa57;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git deinterlace: add condition for switch to EI in de_post_process [1/1] PD#SWPL-12002 Problem: pause and plug out/in hdmi tx, display abnormal Solution: add condition for switch to EI in de_post_process ref to IPTV's project Verify: G12A Change-Id: I6230464c308660c62199aa24ad5843e7c7bd070d Signed-off-by: Jihong Sui --- diff --git a/drivers/amlogic/media/deinterlace/deinterlace.c b/drivers/amlogic/media/deinterlace/deinterlace.c index 453ccf6599b2..a6c373b1f23d 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace.c +++ b/drivers/amlogic/media/deinterlace/deinterlace.c @@ -5449,7 +5449,9 @@ de_post_process(void *arg, unsigned int zoom_start_x_lines, } di_post_stru.update_post_reg_flag = 1; /* if height decrease, mtn will not enough */ - if (di_buf->pd_config.global_mode != PULL_DOWN_BUF1 && + if ((di_buf->pd_config.global_mode + != PULL_DOWN_BUF1) && + !di_buf->di_buf_dup_p[2] && !post_wr_en) di_buf->pd_config.global_mode = PULL_DOWN_EI; }