]> git.karo-electronics.de Git - linux-beck.git/commitdiff
ASoC: arizona: Ensure synchroniser is disabled when not needed
authorMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 5 Mar 2013 16:09:59 +0000 (00:09 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 8 Mar 2013 03:40:28 +0000 (11:40 +0800)
When live configuring a FLL configuration with no synchroniser disable the
synchroniser in case the previous configuration used one.

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/arizona.c

index 8b7855df99de4dbc728d68b0a75369e62d561204..53ddd529769c863e40cc70bd3626d5b2f432821b 100644 (file)
@@ -1187,6 +1187,9 @@ static void arizona_enable_fll(struct arizona_fll *fll,
 
                arizona_apply_fll(arizona, fll->base, sync,
                                  fll->sync_src, false);
+
+               regmap_update_bits(arizona->regmap, fll->base + 0x11,
+                                  ARIZONA_FLL1_SYNC_ENA, 0);
        } else {
                arizona_fll_err(fll, "No clocks provided\n");
                return;