[media] as102: add missing viterbi lock
authorMauro Carvalho Chehab <m.chehab@samsung.com>
Tue, 12 Aug 2014 21:50:24 +0000 (18:50 -0300)
committerMauro Carvalho Chehab <m.chehab@samsung.com>
Thu, 21 Aug 2014 20:25:31 +0000 (15:25 -0500)
In order to get FE_HAS_SYNC, the viterbi should already be
locked too. So, add the missing FE_HAS_VITERBI lock.

Signed-off-by: Mauro Carvalho Chehab <m.chehab@samsung.com>
drivers/media/dvb-frontends/as102_fe.c

index b272e4ea186032cd8053e541b3dcfa81aaeb6b0a..ef4c3c6677826c90e7b3a1ba526e604cd4e98c9c 100644 (file)
@@ -325,11 +325,12 @@ static int as102_fe_read_status(struct dvb_frontend *fe, fe_status_t *status)
                *status = FE_HAS_SIGNAL | FE_HAS_CARRIER;
                break;
        case TUNE_STATUS_STREAM_DETECTED:
-               *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_SYNC;
+               *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_SYNC |
+                         FE_HAS_VITERBI;
                break;
        case TUNE_STATUS_STREAM_TUNED:
                *status = FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_SYNC |
-                       FE_HAS_LOCK;
+                         FE_HAS_LOCK | FE_HAS_VITERBI;
                break;
        default:
                *status = TUNE_STATUS_NOT_TUNED;