deintlace: PQ revert the set of di_belend_ctrl [1/2]
authorqianqian.cai <qianqian.cai@amlogic.com>
Wed, 16 Oct 2019 09:24:29 +0000 (17:24 +0800)
committerTao Zeng <tao.zeng@amlogic.com>
Fri, 18 Oct 2019 09:28:38 +0000 (02:28 -0700)
PD#SWPL-14508

Problem:
HDMI480I/AV IN some issue you can see at the subtitle

Solution:
revert the setting of 85992 di_blend_ctrl ,bit16
from vlsi feijun

Verify:
verfy it on the marconi

Change-Id: I78f6abd104d0953b6db7387900425175a436386b
Signed-off-by: qianqian.cai <qianqian.cai@amlogic.com>
drivers/amlogic/media/deinterlace/deinterlace_hw.c

index 26d0b6c..a946912 100644 (file)
@@ -3840,7 +3840,8 @@ void pulldown_vof_win_config(struct pulldown_detected_s *wins)
        /* revert the setting of top two lines do weave for */
        /* interlace video, suggest by vlsi-feijun */
        DI_VSYNC_WR_MPEG_REG_BITS(DI_BLEND_CTRL,
-               0, 16, 1);
+               (wins->regs[0].win_ve > wins->regs[0].win_vs)
+               ? 1 : 0, 16, 1);
        DI_VSYNC_WR_MPEG_REG_BITS(DI_BLEND_CTRL,
                /*wins->regs[0].blend_mode*/
                                  0x03, 8, 2);