aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/frontends/tda8261.c
diff options
context:
space:
mode:
authorJulian Scheel <julian@jusst.de>2009-07-31 12:40:43 -0400
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-09-12 11:19:07 -0400
commit114323ede9e84a64327b74ff6f7da5576c9ae361 (patch)
treec86eca600cca0a9e87f3bb7c92dd0ddc914371b7 /drivers/media/dvb/frontends/tda8261.c
parentc92f056308c4a77a833e1cc1e16c1b68974483a6 (diff)
V4L/DVB (12481): Fix lowband tuning with tda8261
Attached is a patch which fixes tuning to low frequency channels with stb0899+tda8261 cards like the KNC TV-Station DVB-S2. The cause of the issue was a broken if construct, which should have been an if/else if, so that the setting for the lowest matching frequency is applied. Without this patch for example tuning to "arte" on Astra 19.2, 10744MHz SR22000 failed most times and when it failed the communication between driver and tda8261 was completely broken. This problem disappears with the attached patch. Signed-off-by: Julian Scheel <julian@jusst.de> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/frontends/tda8261.c')
-rw-r--r--drivers/media/dvb/frontends/tda8261.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/dvb/frontends/tda8261.c b/drivers/media/dvb/frontends/tda8261.c
index b6d177799104..320c3c36d8b2 100644
--- a/drivers/media/dvb/frontends/tda8261.c
+++ b/drivers/media/dvb/frontends/tda8261.c
@@ -136,9 +136,9 @@ static int tda8261_set_state(struct dvb_frontend *fe,
136 136
137 if (frequency < 1450000) 137 if (frequency < 1450000)
138 buf[3] = 0x00; 138 buf[3] = 0x00;
139 if (frequency < 2000000) 139 else if (frequency < 2000000)
140 buf[3] = 0x40; 140 buf[3] = 0x40;
141 if (frequency < 2150000) 141 else if (frequency < 2150000)
142 buf[3] = 0x80; 142 buf[3] = 0x80;
143 143
144 /* Set params */ 144 /* Set params */