Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 182811
b: refs/heads/master
c: 5baf831
h: refs/heads/master
i:
  182809: ea41f7e
  182807: 589b297
v: v3
  • Loading branch information
Mark Brown committed Jan 4, 2010
1 parent 2500e73 commit 3918d52
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 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: a126fd5691e6cd680758b72e6ea288bb83b9deb6
refs/heads/master: 5baf831541c61546c00e8d6f294cb10ed5d25e7d
8 changes: 4 additions & 4 deletions trunk/sound/soc/codecs/tlv320aic3x.c
Original file line number Diff line number Diff line change
Expand Up @@ -849,20 +849,20 @@ static int aic3x_hw_params(struct snd_pcm_substream *substream,
* The term had to be converted to get
* rid of the division by 10000; d = 0 here
*/
int clk = (1000 * j * r) / p;
int tmp_clk = (1000 * j * r) / p;

/* Check whether this values get closer than
* the best ones we had before
*/
if (abs(codec_clk - clk) <
if (abs(codec_clk - tmp_clk) <
abs(codec_clk - last_clk)) {
pll_j = j; pll_d = 0;
pll_r = r; pll_p = p;
last_clk = clk;
last_clk = tmp_clk;
}

/* Early exit for exact matches */
if (clk == codec_clk)
if (tmp_clk == codec_clk)
goto found;
}
}
Expand Down

0 comments on commit 3918d52

Please sign in to comment.