From: Liam Girdwood Date: Fri, 6 Jul 2012 15:56:16 +0000 (+0100) Subject: ASoC: dapm: Make sure all dapm contexts are updated X-Git-Tag: v3.6-rc1~17^2~11^2^2~1 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4123128ee4854a955dd4a94b31991f8cc38c9b5e;p=profile%2Fcommon%2Fkernel-common.git ASoC: dapm: Make sure all dapm contexts are updated Make sure we set the bias level for all DAPM contexts when changing level. Signed-off-by: Liam Girdwood Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index 114f2af..7c9cd27 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -288,9 +288,9 @@ static int snd_soc_dapm_set_bias_level(struct snd_soc_dapm_context *dapm, if (dapm->codec->driver->set_bias_level) ret = dapm->codec->driver->set_bias_level(dapm->codec, level); - else - dapm->bias_level = level; - } + } else + dapm->bias_level = level; + if (ret != 0) goto out;