From: Nian Jing Date: Mon, 30 Jul 2018 13:08:30 +0000 (+0800) Subject: tvafe: fix avin unstable issue X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=6af926107cff1ae7b42cb814c457fb7649e72bb8;p=GitHub%2FLineageOS%2FG12%2Fandroid_kernel_amlogic_linux-4.9.git tvafe: fix avin unstable issue PD#170316: fix avin unstable issue Change-Id: Id229eff1e996399251cf2d3c93c3d4b2561f8451 Signed-off-by: Nian Jing --- diff --git a/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c b/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c index f8abe63a6163..ee2f9a0c50d2 100644 --- a/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c +++ b/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c @@ -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);