Skip to content

Commit

Permalink
ASoC: Set full range of WM8994 FLL Fratio values
Browse files Browse the repository at this point in the history
Use all the available Fratio values when configuring the WM8994 FLL, not
just 0 and 3, following more complete characterisation of the device
performance.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Mark Brown committed Apr 20, 2010
1 parent 136ff2a commit 7d48a6a
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion sound/soc/codecs/wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -2784,9 +2784,18 @@ static int wm8994_get_fll_config(struct fll_div *fll,

if (freq_in > 1000000) {
fll->fll_fratio = 0;
} else {
} else if (freq_in > 256000) {
fll->fll_fratio = 1;
freq_in *= 2;
} else if (freq_in > 128000) {
fll->fll_fratio = 2;
freq_in *= 4;
} else if (freq_in > 64000) {
fll->fll_fratio = 3;
freq_in *= 8;
} else {
fll->fll_fratio = 4;
freq_in *= 16;
}
pr_debug("FLL_FRATIO=%d, Fref=%dHz\n", fll->fll_fratio, freq_in);

Expand Down

0 comments on commit 7d48a6a

Please sign in to comment.