From 3a477ca4d413822df67cf2035868f456cab3ace7 Mon Sep 17 00:00:00 2001 From: Nian Jing Date: Wed, 23 Jan 2019 19:54:49 +0800 Subject: [PATCH] avin: fix av detect issue for tl1 [1/1] PD#SWPL-4397 Problem: hotplug incorrect report when av playing some video Solution: when avplay,disable the avdetect Verify: verified by x301 Change-Id: Iaa5d2473611ff9c3f0a0787ff74a27982ee72580 Signed-off-by: Nian Jing --- drivers/amlogic/media/vin/tvin/tvafe/tvafe.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c b/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c index 6cd3ff361f8b..d6838682d661 100644 --- a/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c +++ b/drivers/amlogic/media/vin/tvin/tvafe/tvafe.c @@ -352,7 +352,8 @@ void tvafe_dec_start(struct tvin_frontend_s *fe, enum tvin_sig_fmt_e fmt) W_APB_REG(CVD2_H_LOOP_MAXSTATE, 0x9); #ifdef CONFIG_AMLOGIC_MEDIA_TVIN_AVDETECT - if (tvafe_cpu_type() == CPU_TYPE_TXLX) { + if (tvafe_cpu_type() == CPU_TYPE_TXLX || + tvafe_cpu_type() == CPU_TYPE_TL1) { if (port == TVIN_PORT_CVBS1) tvafe_avin_detect_ch1_anlog_enable(0); else if (port == TVIN_PORT_CVBS2) @@ -418,7 +419,8 @@ void tvafe_dec_stop(struct tvin_frontend_s *fe, enum tvin_port_e port) tvafe_cvd2_set_default_de(&tvafe->cvd2); } #ifdef CONFIG_AMLOGIC_MEDIA_TVIN_AVDETECT - if (tvafe_cpu_type() == CPU_TYPE_TXLX) { + if (tvafe_cpu_type() == CPU_TYPE_TXLX || + tvafe_cpu_type() == CPU_TYPE_TL1) { if (port == TVIN_PORT_CVBS1) tvafe_avin_detect_ch1_anlog_enable(1); else if (port == TVIN_PORT_CVBS2)