summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHolger Waechtler <devnull@localhost>2003-04-09 11:03:30 +0000
committerHolger Waechtler <devnull@localhost>2003-04-09 11:03:30 +0000
commit5b302d576203cd2c71aabc99cbc614bb90aaff76 (patch)
treef07047c00e47ccea0a84b519e3f7fdb0e9e8ba76
parentec41cf281df5448ffb9531cc6d2c2b0ca51cdd1f (diff)
downloadmediapointer-dvb-s2-5b302d576203cd2c71aabc99cbc614bb90aaff76.tar.gz
mediapointer-dvb-s2-5b302d576203cd2c71aabc99cbc614bb90aaff76.tar.bz2
fix band switch frequencies for charge pump settings
-rw-r--r--linux/drivers/media/dvb/frontends/grundig_29504-401.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/grundig_29504-401.c b/linux/drivers/media/dvb/frontends/grundig_29504-401.c
index eb1eda396..0e7f13886 100644
--- a/linux/drivers/media/dvb/frontends/grundig_29504-401.c
+++ b/linux/drivers/media/dvb/frontends/grundig_29504-401.c
@@ -114,10 +114,10 @@ int tsa5060_set_tv_freq (struct dvb_i2c_bus *i2c, u32 freq)
div = (36125000 + freq) / 166666;
cfg = 0x88;
- cpump = div < 175000 ? 2 : div < 390000 ? 1 :
- div < 470000 ? 2 : div < 750000 ? 1 : 3;
+ cpump = div < 175000000 ? 2 : div < 390000000 ? 1 :
+ div < 470000000 ? 2 : div < 750000000 ? 1 : 3;
- band_select = div < 175000 ? 0x0e : div < 470000 ? 0x05 : 0x03;
+ band_select = div < 175000000 ? 0x0e : div < 470000000 ? 0x05 : 0x03;
buf [0] = (div >> 8) & 0x7f;
buf [1] = div & 0xff;