deinterlace: add condition for switch to EI in de_post_process [1/1]
authorJihong Sui <jihong.sui@amlogic.com>
Wed, 4 Sep 2019 04:16:31 +0000 (12:16 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Mon, 9 Sep 2019 08:15:06 +0000 (01:15 -0700)
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 <jihong.sui@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace.c

index 453ccf6..a6c373b 100644 (file)
@@ -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;
        }