diff options
author | 2014-07-09 17:41:43 +0100 | |
---|---|---|
committer | 2014-07-10 12:09:14 +0200 | |
commit | 4714bc015de147c2da5248762b2772c6dbf160eb (patch) | |
tree | 7c09b92c9cb43e560970c2a846b61b20558ee24f | |
parent | ASoC: wm5100/wm8903/wm8996: Replace open-coded snd_soc_dapm_to_codec() (diff) | |
download | wireguard-linux-4714bc015de147c2da5248762b2772c6dbf160eb.tar.xz wireguard-linux-4714bc015de147c2da5248762b2772c6dbf160eb.zip |
ASoC: arizona: Do not test ratio zero as it is not a valid setting
Zero is not a valid FRATIO for the FLL, as such we shouldn't test it
whilst refining the FRATIO. This patch does just that.
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 '')
-rw-r--r-- | sound/soc/codecs/arizona.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 41b56ee6ff51..b03974eb541e 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -1585,7 +1585,7 @@ static int arizona_calc_fratio(struct arizona_fll *fll, } } - for (ratio = init_ratio - 1; ratio >= 0; ratio--) { + for (ratio = init_ratio - 1; ratio > 0; ratio--) { if (ARIZONA_FLL_VCO_CORNER / (fll->vco_mult * ratio) < Fref) break; |