V4L/DVB (13702): [MB86A16] need to wait a bit more than the computed time for a Facto...
authorManu Abraham <abraham.manu@gmail.com>
Thu, 3 Dec 2009 01:00:50 +0000 (22:00 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 17 Jan 2010 13:55:28 +0000 (11:55 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/mb86a16.c

index 47c0d57..ad03b11 100644 (file)
@@ -417,7 +417,8 @@ static int signal_det(struct mb86a16_state *state,
        int ret ;
        int smrtd ;
        int wait_sym ;
-       int wait_t ;
+
+       u32 wait_t;
        unsigned char S[3] ;
        int i ;
 
@@ -1429,6 +1430,7 @@ static int mb86a16_set_fe(struct mb86a16_state *state)
                                        S2T = 7; S4T = 2; S5T = 8; ETH = 7; VIA = 2;
                                        wait_t = 7 + (2097152 + state->srate / 2) / state->srate;
                                }
+                               wait_t *= 2; /*         FOS     */
                                S2T_set(state, S2T);
                                S45T_set(state, S4T, S5T);
                                Vi_set(state, ETH, VIA);