V4L/DVB: STV0288 Incorrect bit sample for Vitterbi status
authorMalcolm Priestley <tvboxspy@gmail.com>
Sat, 28 Aug 2010 21:18:45 +0000 (18:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 21 Oct 2010 03:04:58 +0000 (01:04 -0200)
bit 3(LK) indicates that the Vstatus is locked.
Currently using bit 7(CF) which is usually present, results in early
aborted search in FEC_AUTO and missing channels.

Signed-off-by: Malcolm Priestley <tvboxspy@gmail.com>
Cc: Igor M. Liplianin <liplianin@me.by>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stv0288.c

index 743989dbb18d6d94b6e5002aa2d8bd554d20bbcc..89e8db6ed8414b4bdef73362c9cb78ee3b0fc086 100644 (file)
@@ -486,7 +486,7 @@ static int stv0288_set_frontend(struct dvb_frontend *fe,
        tda[2] = 0x0; /* CFRL */
        for (tm = -6; tm < 7;) {
                /* Viterbi status */
-               if (stv0288_readreg(state, 0x24) & 0x80)
+               if (stv0288_readreg(state, 0x24) & 0x8)
                        break;
 
                tda[2] += 40;