ASoC: dapm: Make sure all dapm contexts are updated
authorLiam Girdwood <lrg@ti.com>
Fri, 6 Jul 2012 15:56:16 +0000 (16:56 +0100)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 6 Jul 2012 18:05:07 +0000 (19:05 +0100)
Make sure we set the bias level for all DAPM contexts when
changing level.

Signed-off-by: Liam Girdwood <lrg@ti.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/soc-dapm.c

index 114f2af5f3042d1e25e4fd5b36199d07cb155ee1..7c9cd276c2fc02fdbd10aa6e77fe408c4e0dfd70 100644 (file)
@@ -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;