summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda18271-fe.c
diff options
context:
space:
mode:
authorMichael Krufky <mkrufky@linuxtv.org>2007-12-24 01:47:30 -0500
committerMichael Krufky <mkrufky@linuxtv.org>2007-12-24 01:47:30 -0500
commit7d5aefb40335b61b494bf1cf936e68dd7ee7038e (patch)
tree138b84b3e35a547562d184d6744e0b1b8b3cad61 /linux/drivers/media/dvb/frontends/tda18271-fe.c
parentc0e1a97ae54def2c300f8d8bb37ac28590a268cb (diff)
downloadmediapointer-dvb-s2-7d5aefb40335b61b494bf1cf936e68dd7ee7038e.tar.gz
mediapointer-dvb-s2-7d5aefb40335b61b494bf1cf936e68dd7ee7038e.tar.bz2
tda18271: divider byte 1, bit 7 is always 0
From: Michael Krufky <mkrufky@linuxtv.org> Bit 7 of both Main Divider byte 1 and Cal Divider byte 1 is always zero. Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Diffstat (limited to 'linux/drivers/media/dvb/frontends/tda18271-fe.c')
-rw-r--r--linux/drivers/media/dvb/frontends/tda18271-fe.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/linux/drivers/media/dvb/frontends/tda18271-fe.c b/linux/drivers/media/dvb/frontends/tda18271-fe.c
index da6bc4857..37e778dcb 100644
--- a/linux/drivers/media/dvb/frontends/tda18271-fe.c
+++ b/linux/drivers/media/dvb/frontends/tda18271-fe.c
@@ -430,7 +430,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
regs[R_CPD] = pd;
div = ((d * (N / 1000)) << 7) / 125;
- regs[R_CD1] = 0xff & (div >> 16);
+ regs[R_CD1] = 0x7f & (div >> 16);
regs[R_CD2] = 0xff & (div >> 8);
regs[R_CD3] = 0xff & div;
@@ -459,7 +459,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
}
div = ((d * (N / 1000)) << 7) / 125;
- regs[R_MD1] = 0xff & (div >> 16);
+ regs[R_MD1] = 0x7f & (div >> 16);
regs[R_MD2] = 0xff & (div >> 8);
regs[R_MD3] = 0xff & div;
@@ -573,7 +573,7 @@ static int tda18271_tune(struct dvb_frontend *fe,
}
div = ((d * (N / 1000)) << 7) / 125;
- regs[R_MD1] = 0xff & (div >> 16);
+ regs[R_MD1] = 0x7f & (div >> 16);
regs[R_MD2] = 0xff & (div >> 8);
regs[R_MD3] = 0xff & div;