dtv_demod: for dtmb no signal issue [1/1]
authorZhiwei Yuan <zhiwei.yuan@amlogic.com>
Tue, 27 Nov 2018 09:38:34 +0000 (17:38 +0800)
committerBo Yang <bo.yang@amlogic.com>
Sat, 1 Dec 2018 16:26:25 +0000 (08:26 -0800)
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 <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/dtv_demod/amlfrontend.c

index 4fb2e22..24298b0 100644 (file)
@@ -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("+");*/