diff options
author | Michael Krufky <mkrufky@linuxtv.org> | 2007-12-24 01:47:30 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-01-25 16:04:18 -0500 |
commit | 7e946c8a4242e3ed944cececddd3f2294299ed65 (patch) | |
tree | febdfc234148e62d363a602945dc6da5d198d14b | |
parent | 994fc28b6cd087cf6ef8d3ebd4eeef97c8194e4e (diff) |
V4L/DVB (6904): tda18271: divider byte 1, bit 7 is always 0
Bit 7 of both Main Divider byte 1 and Cal Divider byte 1 is always zero.
Signed-off-by: Michael Krufky <mkrufky@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r-- | drivers/media/dvb/frontends/tda18271-fe.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/media/dvb/frontends/tda18271-fe.c b/drivers/media/dvb/frontends/tda18271-fe.c index 8eaeb057282a..d9994aeeb14f 100644 --- a/drivers/media/dvb/frontends/tda18271-fe.c +++ b/drivers/media/dvb/frontends/tda18271-fe.c | |||
@@ -424,7 +424,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
424 | regs[R_CPD] = pd; | 424 | regs[R_CPD] = pd; |
425 | 425 | ||
426 | div = ((d * (N / 1000)) << 7) / 125; | 426 | div = ((d * (N / 1000)) << 7) / 125; |
427 | regs[R_CD1] = 0xff & (div >> 16); | 427 | regs[R_CD1] = 0x7f & (div >> 16); |
428 | regs[R_CD2] = 0xff & (div >> 8); | 428 | regs[R_CD2] = 0xff & (div >> 8); |
429 | regs[R_CD3] = 0xff & div; | 429 | regs[R_CD3] = 0xff & div; |
430 | 430 | ||
@@ -453,7 +453,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
453 | } | 453 | } |
454 | 454 | ||
455 | div = ((d * (N / 1000)) << 7) / 125; | 455 | div = ((d * (N / 1000)) << 7) / 125; |
456 | regs[R_MD1] = 0xff & (div >> 16); | 456 | regs[R_MD1] = 0x7f & (div >> 16); |
457 | regs[R_MD2] = 0xff & (div >> 8); | 457 | regs[R_MD2] = 0xff & (div >> 8); |
458 | regs[R_MD3] = 0xff & div; | 458 | regs[R_MD3] = 0xff & div; |
459 | 459 | ||
@@ -567,7 +567,7 @@ static int tda18271_tune(struct dvb_frontend *fe, | |||
567 | } | 567 | } |
568 | 568 | ||
569 | div = ((d * (N / 1000)) << 7) / 125; | 569 | div = ((d * (N / 1000)) << 7) / 125; |
570 | regs[R_MD1] = 0xff & (div >> 16); | 570 | regs[R_MD1] = 0x7f & (div >> 16); |
571 | regs[R_MD2] = 0xff & (div >> 8); | 571 | regs[R_MD2] = 0xff & (div >> 8); |
572 | regs[R_MD3] = 0xff & div; | 572 | regs[R_MD3] = 0xff & div; |
573 | 573 | ||