Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 305644
b: refs/heads/master
c: c4b14e7
h: refs/heads/master
v: v3
  • Loading branch information
Ashish Chavan authored and Mark Brown committed Apr 17, 2012
1 parent 8afee46 commit ea911c8
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 14 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: 570aa7bae5e72900d62915fc56783689d95c3fb3
refs/heads/master: c4b14e70a1e59caff00d8336430704376b4211ed
22 changes: 9 additions & 13 deletions trunk/sound/soc/codecs/da7210.c
Original file line number Diff line number Diff line change
Expand Up @@ -992,19 +992,15 @@ static int da7210_set_dai_pll(struct snd_soc_dai *codec_dai, int pll_id,

/* Search pll div array for correct divisors */
for (cnt = 0; cnt < ARRAY_SIZE(da7210_pll_div); cnt++) {
/* check fref */
if (fref == da7210_pll_div[cnt].fref) {
/* check mode */
if (da7210->master == da7210_pll_div[cnt].mode) {
/* check fout */
if (fout == da7210_pll_div[cnt].fout) {
/* all match, pick up divisors */
pll_div1 = da7210_pll_div[cnt].div1;
pll_div2 = da7210_pll_div[cnt].div2;
pll_div3 = da7210_pll_div[cnt].div3;
break;
}
}
/* check fref, mode and fout */
if ((fref == da7210_pll_div[cnt].fref) &&
(da7210->master == da7210_pll_div[cnt].mode) &&
(fout == da7210_pll_div[cnt].fout)) {
/* all match, pick up divisors */
pll_div1 = da7210_pll_div[cnt].div1;
pll_div2 = da7210_pll_div[cnt].div2;
pll_div3 = da7210_pll_div[cnt].div3;
break;
}
}
if (cnt >= ARRAY_SIZE(da7210_pll_div))
Expand Down

0 comments on commit ea911c8

Please sign in to comment.