[media] stb0899: set FE_HAS_SIGNAL flag in read_status
authorAndreas Regel <andreas.regel@gmx.de>
Tue, 28 Feb 2012 17:40:40 +0000 (14:40 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 14:22:19 +0000 (11:22 -0300)
In stb0899_read_status the FE_HAS_SIGNAL flag was not set in case of a
successful carrier lock. This change fixes that.

Signed-off-by: Andreas Regel <andreas.regel@gmx.de>
Acked-by: Klaus Schmidinger <Klaus.Schmidinger@tvdr.de>
Cc: Manu Abraham <abraham.manu@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_drv.c

index 38565beafe23a8594c22d8fbe5bc710fc74dd2f0..d38f555a1f1588055084fd4526ce37f6e7b67204 100644 (file)
@@ -1071,7 +1071,7 @@ static int stb0899_read_status(struct dvb_frontend *fe, enum fe_status *status)
                        reg  = stb0899_read_reg(state, STB0899_VSTATUS);
                        if (STB0899_GETFIELD(VSTATUS_LOCKEDVIT, reg)) {
                                dprintk(state->verbose, FE_DEBUG, 1, "--------> FE_HAS_CARRIER | FE_HAS_LOCK");
-                               *status |= FE_HAS_CARRIER | FE_HAS_LOCK;
+                               *status |= FE_HAS_SIGNAL | FE_HAS_CARRIER | FE_HAS_LOCK;
 
                                reg = stb0899_read_reg(state, STB0899_PLPARM);
                                if (STB0899_GETFIELD(VITCURPUN, reg)) {