From f3b2df252c86812df8af50b3fec901974cc420ad Mon Sep 17 00:00:00 2001 From: Zhiwei Yuan Date: Wed, 12 Dec 2018 20:48:20 +0800 Subject: [PATCH] dtv_demod: "No signal" is seen when video is playing [1/1] PD#SWPL-3019 Problem: Unplug the DTV signal, then do AC off then on, enter DTV source, plug the DTV signal, then change channel, the current channel will display abnormally, the video will display with "no signal" together Solution: sync the signal status(using read sts interface) with tuning result Verify: verified by T962-P321-DDR4 Change-Id: I3ba01dc976c40391f3f305a3754632d2cccfd571 Signed-off-by: Zhiwei Yuan --- drivers/amlogic/media/dtv_demod/amlfrontend.c | 12 +++++------- 1 file changed, 5 insertions(+), 7 deletions(-) diff --git a/drivers/amlogic/media/dtv_demod/amlfrontend.c b/drivers/amlogic/media/dtv_demod/amlfrontend.c index 953d9aa..0e9f226 100644 --- a/drivers/amlogic/media/dtv_demod/amlfrontend.c +++ b/drivers/amlogic/media/dtv_demod/amlfrontend.c @@ -2754,13 +2754,11 @@ static int gxtv_demod_dtmb_tune(struct dvb_frontend *fe, bool re_tune, *delay = HZ / 4; gxtv_demod_dtmb_read_status_old(fe, status); - if (is_ic_ver(IC_VER_TL1)) { - if (*status == (FE_HAS_LOCK | FE_HAS_SIGNAL | FE_HAS_CARRIER | - FE_HAS_VITERBI | FE_HAS_SYNC)) - dtmb_poll_start_tune(DTMBM_HV_SIGNEL_CHECK); - else - dtmb_poll_start_tune(DTMBM_NO_SIGNEL_CHECK); - } + if (*status == (FE_HAS_LOCK | FE_HAS_SIGNAL | FE_HAS_CARRIER | + FE_HAS_VITERBI | FE_HAS_SYNC)) + dtmb_poll_start_tune(DTMBM_HV_SIGNEL_CHECK); + else + dtmb_poll_start_tune(DTMBM_NO_SIGNEL_CHECK); #else /*try polling*/ -- 2.7.4