summaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/stb0899_algo.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2008-02-23 22:02:45 +0100
committerMauro Carvalho Chehab <mchehab@redhat.com>2008-12-29 20:53:23 +0100
commit9a286097b027081c073addc2c55775340704c683 (patch)
treeb0dd27cc7e23bb3c2ac83fa94724b05733b52dce /drivers/media/dvb/frontends/stb0899_algo.c
parentV4L/DVB (9457): Optimization, Fix a Bug (diff)
downloadlinux-9a286097b027081c073addc2c55775340704c683.tar.xz
linux-9a286097b027081c073addc2c55775340704c683.zip
V4L/DVB (9458): Bugfix: gate control needs to be handled
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/stb0899_algo.c')
-rw-r--r--drivers/media/dvb/frontends/stb0899_algo.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/media/dvb/frontends/stb0899_algo.c b/drivers/media/dvb/frontends/stb0899_algo.c
index 3cf9719204f2..750e88c2c8e6 100644
--- a/drivers/media/dvb/frontends/stb0899_algo.c
+++ b/drivers/media/dvb/frontends/stb0899_algo.c
@@ -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;
}