diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-21 06:12:22 +0100 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-11-27 20:30:56 +0100 |
commit | 1cbe4bcae342973e36447aa03a609bc25804f416 (patch) | |
tree | 465f179f0078f3c69b1b1b61987db0fe696b9779 /sound/soc/codecs/arizona.c | |
parent | ASoC: wm5102: Add missing routes for ASRC inputs (diff) | |
download | linux-1cbe4bcae342973e36447aa03a609bc25804f416.tar.xz linux-1cbe4bcae342973e36447aa03a609bc25804f416.zip |
ASoC: arizona: Suppress noop FLL updates
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/arizona.c')
-rw-r--r-- | sound/soc/codecs/arizona.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 500e6cb462d8..d49764388f1c 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -937,6 +937,9 @@ int arizona_set_fll(struct arizona_fll *fll, int source, bool ena; int ret; + if (fll->fref == Fref && fll->fout == Fout) + return 0; + ret = regmap_read(arizona->regmap, fll->base + 1, ®); if (ret != 0) { arizona_fll_err(fll, "Failed to read current state: %d\n", @@ -1014,6 +1017,9 @@ int arizona_set_fll(struct arizona_fll *fll, int source, if (ret == 0) arizona_fll_warn(fll, "Timed out waiting for lock\n"); + fll->fref = Fref; + fll->fout = Fout; + return 0; } EXPORT_SYMBOL_GPL(arizona_set_fll); |