From 114854aac27e1e96d83d36dd55bf5b706e98276f Mon Sep 17 00:00:00 2001 From: "qianqian.cai" Date: Wed, 16 Oct 2019 17:24:29 +0800 Subject: [PATCH] deintlace: PQ revert the set of di_belend_ctrl [1/2] 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 --- drivers/amlogic/media/deinterlace/deinterlace_hw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/drivers/amlogic/media/deinterlace/deinterlace_hw.c b/drivers/amlogic/media/deinterlace/deinterlace_hw.c index 26d0b6c..a946912 100644 --- a/drivers/amlogic/media/deinterlace/deinterlace_hw.c +++ b/drivers/amlogic/media/deinterlace/deinterlace_hw.c @@ -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); -- 2.7.4