Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 38275
b: refs/heads/master
c: 9b5a4a6
h: refs/heads/master
i:
  38273: 0fba254
  38271: 5d9bfea
v: v3
  • Loading branch information
Steven Toth authored and Mauro Carvalho Chehab committed Oct 3, 2006
1 parent 62c26e4 commit 355e08e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: d2be893616c45e4ea4403d1ba501b7ee2f32b0ec
refs/heads/master: 9b5a4a676a4d6126664c3df5a11f6fe87da63133
4 changes: 2 additions & 2 deletions trunk/drivers/media/dvb/frontends/cx24123.c
Original file line number Diff line number Diff line change
Expand Up @@ -553,8 +553,8 @@ static int cx24123_pll_calculate(struct dvb_frontend* fe, struct dvb_frontend_pa
ndiv = ( ((p->frequency * vco_div * 10) / (2 * XTAL / 1000)) / 32) & 0x1ff;
adiv = ( ((p->frequency * vco_div * 10) / (2 * XTAL / 1000)) % 32) & 0x1f;

if (adiv == 0)
ndiv++;
if (adiv == 0 && ndiv > 0)
ndiv--;

/* control bits 11, refdiv 11, charge pump polarity 1, charge pump current, ndiv, adiv */
state->pllarg = (3 << 19) | (3 << 17) | (1 << 16) | (pump << 14) | (ndiv << 5) | adiv;
Expand Down

0 comments on commit 355e08e

Please sign in to comment.