summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2009-07-31 16:40:43 +0000
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-07-31 16:40:43 +0000
commit6d42d3dbff0a3351611853581210b9fda6301510 (patch)
treef7d191e90cab189ad753dc160d0c0cca22e514fc /linux/drivers/media/dvb
parent6d6da3a7c53bcd97db93c50943018e880d31412e (diff)
downloadmediapointer-dvb-s2-6d42d3dbff0a3351611853581210b9fda6301510.tar.gz
mediapointer-dvb-s2-6d42d3dbff0a3351611853581210b9fda6301510.tar.bz2
Fix lowband tuning with tda8261
From: Julian Scheel <julian@jusst.de> 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 'linux/drivers/media/dvb')
-rw-r--r--linux/drivers/media/dvb/frontends/tda8261.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda8261.c b/linux/drivers/media/dvb/frontends/tda8261.c
index b6d177799..320c3c36d 100644
--- a/linux/drivers/media/dvb/frontends/tda8261.c
+++ b/linux/drivers/media/dvb/frontends/tda8261.c
@@ -136,9 +136,9 @@ static int tda8261_set_state(struct dvb_frontend *fe,
if (frequency < 1450000)
buf[3] = 0x00;
- if (frequency < 2000000)
+ else if (frequency < 2000000)
buf[3] = 0x40;
- if (frequency < 2150000)
+ else if (frequency < 2150000)
buf[3] = 0x80;
/* Set params */