diff options
author | Charles Keepax <ckeepax@opensource.wolfsonmicro.com> | 2014-07-09 17:41:45 +0100 |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2014-07-10 12:09:15 +0200 |
commit | 35a730a0790b2a6535e0b4a964c6a8b2d27fa019 (patch) | |
tree | 8ba685398e8b4d6f69b3a07cede150f0e0be3cfb /sound/soc | |
parent | 29fee829408117624efcd478f6f228d77039b969 (diff) | |
download | op-kernel-dev-35a730a0790b2a6535e0b4a964c6a8b2d27fa019.zip op-kernel-dev-35a730a0790b2a6535e0b4a964c6a8b2d27fa019.tar.gz |
ASoC: arizona: Correct relationship between VCO corner and Fref
When configuring the FLL we must ensure that the reference clock passed
to the FLL is under a certain limit. This limit was specified
incorrectly in the current code, this patch corrects this. Although the
error will only be encountered in some edge cases.
Reported-by: Ryo Tsutsui <ryo.tsutsui@wolfsonmicro.com>
Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound/soc')
-rw-r--r-- | sound/soc/codecs/arizona.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 4c4727f..6084af7 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1578,8 +1578,8 @@ static int arizona_calc_fratio(struct arizona_fll *fll, while (div <= ARIZONA_FLL_MAX_REFDIV) { for (ratio = init_ratio; ratio <= ARIZONA_FLL_MAX_FRATIO; ratio++) { - if (ARIZONA_FLL_VCO_CORNER / (fll->vco_mult * ratio) < - Fref) + if ((ARIZONA_FLL_VCO_CORNER / 2) / + (fll->vco_mult * ratio) < Fref) break; if (target % (ratio * Fref)) { |