Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 357548
b: refs/heads/master
c: aadb464
h: refs/heads/master
v: v3
  • Loading branch information
Michael Büsch authored and Mauro Carvalho Chehab committed Feb 8, 2013
1 parent f8ad887 commit ee29161
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 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: 03a497d4b4c5205f6a365c4673e21298e681a8a6
refs/heads/master: aadb4640109b76cc9d0e1d8ce6b7bc3258a89170
6 changes: 5 additions & 1 deletion trunk/drivers/media/tuners/fc0011.c
Original file line number Diff line number Diff line change
Expand Up @@ -220,6 +220,7 @@ static int fc0011_set_params(struct dvb_frontend *fe)

/* Calc XIN. The PLL reference frequency is 18 MHz. */
xdiv = fvco / 18000;
WARN_ON(xdiv > 0xFF);
frac = fvco - xdiv * 18000;
frac = (frac << 15) / 18000;
if (frac >= 16384)
Expand Down Expand Up @@ -346,6 +347,8 @@ static int fc0011_set_params(struct dvb_frontend *fe)
vco_cal &= FC11_VCOCAL_VALUEMASK;

switch (vco_sel) {
default:
WARN_ON(1);
case 0:
if (vco_cal < 8) {
regs[FC11_REG_VCOSEL] &= ~(FC11_VCOSEL_1 | FC11_VCOSEL_2);
Expand Down Expand Up @@ -427,7 +430,8 @@ static int fc0011_set_params(struct dvb_frontend *fe)
err = fc0011_writereg(priv, FC11_REG_RCCAL, regs[FC11_REG_RCCAL]);
if (err)
return err;
err = fc0011_writereg(priv, FC11_REG_16, 0xB);
regs[FC11_REG_16] = 0xB;
err = fc0011_writereg(priv, FC11_REG_16, regs[FC11_REG_16]);
if (err)
return err;

Expand Down

0 comments on commit ee29161

Please sign in to comment.