Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182870
b: refs/heads/master
c: 07cd8ad
h: refs/heads/master
v: v3
  • Loading branch information
Joonyoung Shim authored and Mark Brown committed Feb 2, 2010
1 parent ac14ea8 commit 85bca20
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 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: fead215d1c0a385fc27a1fa96b7abbc4d66fb4c6
refs/heads/master: 07cd8ada1aba5556b0d5d2264ce0f40d1ff1d131
7 changes: 2 additions & 5 deletions trunk/sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -3267,15 +3267,12 @@ static int wm8994_hw_params(struct snd_pcm_substream *substream,
*/
best = 0;
for (i = 0; i < ARRAY_SIZE(bclk_divs); i++) {
if (bclk_divs[i] < 0)
continue;
cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i])
- bclk_rate * 10;
cur_val = (wm8994->aifclk[id] * 10 / bclk_divs[i]) - bclk_rate;
if (cur_val < 0) /* BCLK table is sorted */
break;
best = i;
}
bclk_rate = wm8994->aifclk[id] / bclk_divs[best];
bclk_rate = wm8994->aifclk[id] * 10 / bclk_divs[best];
dev_dbg(dai->dev, "Using BCLK_DIV %d for actual BCLK %dHz\n",
bclk_divs[best], bclk_rate);
bclk |= best << WM8994_AIF1_BCLK_DIV_SHIFT;
Expand Down

0 comments on commit 85bca20

Please sign in to comment.