dtv_demod: "No signal" is seen when video is playing [1/1]
authorZhiwei Yuan <zhiwei.yuan@amlogic.com>
Wed, 12 Dec 2018 12:48:20 +0000 (20:48 +0800)
committerLuan Yuan <luan.yuan@amlogic.com>
Mon, 17 Dec 2018 10:19:23 +0000 (18:19 +0800)
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 <zhiwei.yuan@amlogic.com>
drivers/amlogic/media/dtv_demod/amlfrontend.c

index 953d9aa..0e9f226 100644 (file)
@@ -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*/