video: disable blend ctrl when video off
authorBrian Zhu <brian.zhu@amlogic.com>
Sat, 3 Feb 2018 15:29:41 +0000 (23:29 +0800)
committerYixun Lan <yixun.lan@amlogic.com>
Mon, 5 Mar 2018 06:22:13 +0000 (14:22 +0800)
PD#156734: video: disable blend ctrl when video off

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

index 43da566..99f41e8 100644 (file)
@@ -5603,6 +5603,12 @@ SET_FILTER:
                        VD1_IF0_GEN_REG + cur_dev->viu_off, 0);
                VSYNC_WR_MPEG_REG(
                        VD2_IF0_GEN_REG + cur_dev->viu_off, 0);
+               if (!legacy_vpp) {
+                       VSYNC_WR_MPEG_REG(
+                               VD1_BLEND_SRC_CTRL + cur_dev->vpp_off, 0);
+                       VSYNC_WR_MPEG_REG(
+                               VD2_BLEND_SRC_CTRL + cur_dev->vpp_off, 0);
+               }
        }
 
 #ifdef CONFIG_AMLOGIC_MEDIA_VSYNC_RDMA
@@ -8933,6 +8939,11 @@ static int __init video_early_init(void)
        WRITE_VCBUS_REG(VPP_SRSHARP0_CTRL, 0);
        WRITE_VCBUS_REG(VPP_SRSHARP1_CTRL, 0);
 
+       /* Temp force set dmc */
+       if (!legacy_vpp)
+               WRITE_DMCREG(
+                       DMC_AM0_CHAN_CTRL,
+                       0x8ff403cf);
        return 0;
 }