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-Tag: v3.6-rc6~6^2^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=d8c3bb911f5afc32f7276c2e2e89eb58af4306ae;p=profile%2Fivi%2Fkernel-adaptation-intel-automotive.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 dd7c49f..145ec4b 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;