From: Mark Brown Date: Thu, 23 Aug 2012 17:10:42 +0000 (+0100) Subject: ASoC: dapm: Make sure we update the bias level for CODECs with no op X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=d8c3bb911f5afc32f7276c2e2e89eb58af4306ae;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: dapm: Make sure we update the bias level for CODECs with no op Commit 412312 (ASoC: dapm: Make sure all dapm contexts are updated) ensures that we update non-CODEC DAPM contexts but means that if a CODEC has no set_bias_level() operation it'll not be updated. Fix that. Signed-off-by: Mark Brown --- diff --git a/sound/soc/soc-dapm.c b/sound/soc/soc-dapm.c index dd7c49fafd75..145ec4b56ca9 100644 --- a/sound/soc/soc-dapm.c +++ b/sound/soc/soc-dapm.c @@ -291,6 +291,8 @@ 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;