summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/tda18271-fe.c
diff options
context:
space:
mode:
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;