From: Richard Fitzgerald Date: Thu, 25 Aug 2016 10:39:32 +0000 (+0100) Subject: ASoC: arizona: Wait for resume before enabling FLL X-Git-Tag: v4.14-rc1~2251^2~4^2~16^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=63d19e0693668de5ce46b5f0f948645bf43b546b;p=platform%2Fkernel%2Flinux-rpi.git ASoC: arizona: Wait for resume before enabling FLL When enabling an FLL use pm_runtime_get_sync() instead of pm_runtime_get() to ensure that all the register settings have been written out and the codec is powered-up before we write the enable bit. Signed-off-by: Richard Fitzgerald Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/arizona.c b/sound/soc/codecs/arizona.c index 0fc3b4b6..ccb3ca2 100644 --- a/sound/soc/codecs/arizona.c +++ b/sound/soc/codecs/arizona.c @@ -2268,7 +2268,7 @@ static int arizona_enable_fll(struct arizona_fll *fll) ARIZONA_FLL1_SYNC_BW); if (!already_enabled) - pm_runtime_get(arizona->dev); + pm_runtime_get_sync(arizona->dev); regmap_update_bits_async(arizona->regmap, fll->base + 1, ARIZONA_FLL1_ENA, ARIZONA_FLL1_ENA);