Skip to content

Commit

Permalink
V4L/DVB (6904): tda18271: divider byte 1, bit 7 is always 0
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Michael Krufky authored and Mauro Carvalho Chehab committed Jan 25, 2008
1 parent 994fc28 commit 7e946c8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions drivers/media/dvb/frontends/tda18271-fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -424,7 +424,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;

Expand Down Expand Up @@ -453,7 +453,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;

Expand Down Expand Up @@ -567,7 +567,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;

Expand Down

0 comments on commit 7e946c8

Please sign in to comment.