V4L/DVB (9458): Bugfix: gate control needs to be handled
authorManu Abraham <abraham.manu@gmail.com>
Sat, 23 Feb 2008 21:02:45 +0000 (18:02 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Mon, 29 Dec 2008 19:53:23 +0000 (17:53 -0200)
Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/dvb/frontends/stb0899_algo.c

index 3cf9719..750e88c 100644 (file)
@@ -146,7 +146,9 @@ static void stb0899_first_subrange(struct stb0899_state *state)
        u32 bandwidth = 0;
 
        if (config->tuner_get_bandwidth) {
+               stb0899_i2c_gate_ctrl(&state->frontend, 1);
                config->tuner_get_bandwidth(&state->frontend, &bandwidth);
+               stb0899_i2c_gate_ctrl(&state->frontend, 0);
                range = bandwidth - stb0899_carr_width(state) / 2;
        }