tvafe: fix avin unstable issue
authorNian Jing <nian.jing@amlogic.com>
Mon, 30 Jul 2018 13:08:30 +0000 (21:08 +0800)
committerJianxin Pan <jianxin.pan@amlogic.com>
Wed, 1 Aug 2018 03:11:19 +0000 (20:11 -0700)
PD#170316: fix avin unstable issue

Change-Id: Id229eff1e996399251cf2d3c93c3d4b2561f8451
Signed-off-by: Nian Jing <nian.jing@amlogic.com>
drivers/amlogic/media/vin/tvin/tvafe/tvafe.c

index f8abe63..ee2f9a0 100644 (file)
@@ -286,7 +286,9 @@ int tvafe_dec_open(struct tvin_frontend_s *fe, enum tvin_port_e port)
                        W_APB_BIT(TVFE_CLAMP_INTF, 1,
                                        CLAMP_EN_BIT, CLAMP_EN_WID);
                }
-       }
+       } else
+               W_APB_BIT(TVFE_CLAMP_INTF, 1,
+                                       CLAMP_EN_BIT, CLAMP_EN_WID);
 #else
        W_APB_BIT(TVFE_CLAMP_INTF, 1,
                                        CLAMP_EN_BIT, CLAMP_EN_WID);