[media] STV0288 increase delay between carrier search
authorMalcolm Priestley <tvboxspy@gmail.com>
Fri, 2 Mar 2012 21:15:41 +0000 (18:15 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 19 Mar 2012 17:12:32 +0000 (14:12 -0300)
The current delay of 30uS is too short to recover any carrier.

In the lmedm04 driver delays were added to overcome carrier lock
problems. The typical delay was 30mS (2 x 15ms register write
0x2c and read 0x24).

Other drivers that use STV0288 don't appear to have any delay are
likely to have also suffered this problem.

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

index fb5548a82208276281fdfe95e0d1206f8c9f18bd..632b25156e4c94fe73f35ea0dd04b224386d2803 100644 (file)
@@ -506,7 +506,7 @@ static int stv0288_set_frontend(struct dvb_frontend *fe)
                tda[1] = (unsigned char)tm;
                stv0288_writeregI(state, 0x2b, tda[1]);
                stv0288_writeregI(state, 0x2c, tda[2]);
-               udelay(30);
+               msleep(30);
        }
        state->tuner_frequency = c->frequency;
        state->fec_inner = FEC_AUTO;