Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 316311
b: refs/heads/master
c: 2b4d39f
h: refs/heads/master
i:
  316309: db26ae8
  316307: f0470ae
  316303: 1623d08
v: v3
  • Loading branch information
Mark Brown committed Jul 10, 2012
1 parent bb799e1 commit afbf750
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 4 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: a1f34af0ec35e3131d65e0ae4cec6b048cba3e88
refs/heads/master: 2b4d39fc2a80e271ac8d44fccd02277a4b63c557
6 changes: 3 additions & 3 deletions trunk/sound/soc/codecs/arizona.c
Original file line number Diff line number Diff line change
Expand Up @@ -734,17 +734,17 @@ static int arizona_calc_fll(struct arizona_fll *fll,
/* Apply the division for our remaining calculations */
Fref /= div;

/* Fvco should be 90-100MHz; don't check the upper bound */
/* Fvco should be over the targt; don't check the upper bound */
div = 1;
while (Fout * div < 90000000) {
while (Fout * div < 90000000 * fll->vco_mult) {
div++;
if (div > 7) {
arizona_fll_err(fll, "No FLL_OUTDIV for Fout=%uHz\n",
Fout);
return -EINVAL;
}
}
target = Fout * div;
target = Fout * div / fll->vco_mult;
cfg->outdiv = div;

arizona_fll_dbg(fll, "Fvco=%dHz\n", target);
Expand Down
1 change: 1 addition & 0 deletions trunk/sound/soc/codecs/arizona.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,6 +141,7 @@ struct arizona_fll {
struct arizona *arizona;
int id;
unsigned int base;
unsigned int vco_mult;
struct completion lock;
struct completion ok;

Expand Down
3 changes: 3 additions & 0 deletions trunk/sound/soc/codecs/wm5102.c
Original file line number Diff line number Diff line change
Expand Up @@ -853,6 +853,9 @@ static int __devinit wm5102_probe(struct platform_device *pdev)

wm5102->core.arizona = arizona;

for (i = 0; i < ARRAY_SIZE(wm5102->fll); i++)
wm5102->fll[i].vco_mult = 1;

arizona_init_fll(arizona, 1, ARIZONA_FLL1_CONTROL_1 - 1,
ARIZONA_IRQ_FLL1_LOCK, ARIZONA_IRQ_FLL1_CLOCK_OK,
&wm5102->fll[0]);
Expand Down

0 comments on commit afbf750

Please sign in to comment.