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-Tag: hardkernel-4.9.236-104~687 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=1b58714ec4e2ac22b5ba732a228a2edc8685fa57;p=platform%2Fkernel%2Flinux-amlogic.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 453ccf6..a6c373b 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; }