[media] stv0900: Update status when LOCK is missed
authorAbylay Ospan <aospan@netup.ru>
Mon, 14 Feb 2011 19:03:13 +0000 (16:03 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 21 Mar 2011 23:32:40 +0000 (20:32 -0300)
Signed-off-by: Abylay Ospan <aospan@netup.ru>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv0900_core.c

index 0d9b456d34fcf48565690cd43f7152488a6d256b..0ca316d6fffacf68733df21fe3e5419149b8ea0f 100644 (file)
@@ -1666,6 +1666,7 @@ static int stv0900_read_status(struct dvb_frontend *fe, enum fe_status *status)
                if (state->config->set_lock_led)
                        state->config->set_lock_led(fe, 1);
        } else {
+               *status = 0;
                if (state->config->set_lock_led)
                        state->config->set_lock_led(fe, 0);
                dprintk("DEMOD LOCK FAIL\n");