diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-07-17 17:13:01 -0400 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2009-07-17 17:13:01 -0400 |
commit | 0c11f655553c84bb695fdd5ea8b19d42b41b7133 (patch) | |
tree | 51efcff77d1e22ee6d0a12bb3d36e0db76db4314 | |
parent | 8aa2df53088f024b13cb005956bd6da94cc1fd2d (diff) |
ASoC: Fix FLL reference clock division setup in WM8993
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
-rw-r--r-- | sound/soc/codecs/wm8993.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/sound/soc/codecs/wm8993.c b/sound/soc/codecs/wm8993.c index f9c49b3e559c..e246ca079897 100644 --- a/sound/soc/codecs/wm8993.c +++ b/sound/soc/codecs/wm8993.c | |||
@@ -345,8 +345,10 @@ static int fll_factors(struct _fll_div *fll_div, unsigned int Fref, | |||
345 | 345 | ||
346 | /* Fref must be <=13.5MHz */ | 346 | /* Fref must be <=13.5MHz */ |
347 | div = 1; | 347 | div = 1; |
348 | fll_div->fll_clk_ref_div = 0; | ||
348 | while ((Fref / div) > 13500000) { | 349 | while ((Fref / div) > 13500000) { |
349 | div *= 2; | 350 | div *= 2; |
351 | fll_div->fll_clk_ref_div++; | ||
350 | 352 | ||
351 | if (div > 8) { | 353 | if (div > 8) { |
352 | pr_err("Can't scale %dMHz input down to <=13.5MHz\n", | 354 | pr_err("Can't scale %dMHz input down to <=13.5MHz\n", |