From a750060140d57e537ffe417734ca97187e9aa915 Mon Sep 17 00:00:00 2001 From: Zhiwei Yuan Date: Tue, 27 Nov 2018 17:38:34 +0800 Subject: [PATCH] dtv_demod: for dtmb no signal issue [1/1] PD#172587 Problem: for dtmb no signal issue Solution: update status to "read status" interface Verify: verified by t962x2_x301 Change-Id: I6099d2dbe4dcdc23c3a4bd9e489113b26429f2ec Signed-off-by: Zhiwei Yuan --- drivers/amlogic/media/dtv_demod/amlfrontend.c | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/drivers/amlogic/media/dtv_demod/amlfrontend.c b/drivers/amlogic/media/dtv_demod/amlfrontend.c index 61c51818fc0d..a8cdb9e87880 100644 --- a/drivers/amlogic/media/dtv_demod/amlfrontend.c +++ b/drivers/amlogic/media/dtv_demod/amlfrontend.c @@ -2761,6 +2761,15 @@ static int gxtv_demod_dtmb_tune(struct dvb_frontend *fe, bool re_tune, #if 1 /**/ *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); + } + #else /*try polling*/ /*pr_dbg("+");*/