video: vpp: add more check for vd1 postblend in vpp_misc [1/2]
authorBrian Zhu <brian.zhu@amlogic.com>
Wed, 28 Nov 2018 15:57:40 +0000 (23:57 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Fri, 30 Nov 2018 04:15:25 +0000 (20:15 -0800)
PD#SWPL-2580

Problem:
The vd1 postblend bit in vpp misc is overwriten.

Solution:
add more check for vd1 postblend bit in vsync

Verify:
verify by p212

Change-Id: I367e920c13764af41446d7d759aaf8388fb08722
Signed-off-by: Brian Zhu <brian.zhu@amlogic.com>
drivers/amlogic/media/video_sink/video.c

index fd6adc0..8000277 100644 (file)
@@ -6450,6 +6450,14 @@ SET_FILTER:
                video_enabled = video_status_saved;
        }
 
+       if (!video_enabled &&
+               (vpp_misc_set & VPP_VD1_POSTBLEND))
+               vpp_misc_set &= ~(VPP_VD1_PREBLEND |
+                       VPP_VD2_PREBLEND |
+                       VPP_VD2_POSTBLEND |
+                       VPP_VD1_POSTBLEND |
+                       VPP_PREBLEND_EN);
+
        if (!legacy_vpp) {
                u32 set_value = 0;