From: Axel Lin Date: Wed, 26 Oct 2011 01:53:41 +0000 (+0800) Subject: ASoC: wm8940: Properly set codec->dapm.bias_level X-Git-Tag: v2.6.32.49~17 X-Git-Url: https://git.fsl.cs.sunysb.edu/?a=commitdiff_plain;h=26227d2906ed5a65f7636ed5cf1c7e42bc4d14e1;p=unionfs-2.6.39.y.git ASoC: wm8940: Properly set codec->dapm.bias_level commit 5927f94700e860ae27ff24e7f3bc9e4f7b9922eb upstream. Reported-by: Chris Paulson-Ellis Signed-off-by: Axel Lin Signed-off-by: Mark Brown Signed-off-by: Greg Kroah-Hartman --- diff --git a/sound/soc/codecs/wm8940.c b/sound/soc/codecs/wm8940.c index 63bc2ae736a..6fa31528c1a 100644 --- a/sound/soc/codecs/wm8940.c +++ b/sound/soc/codecs/wm8940.c @@ -472,6 +472,7 @@ static int wm8940_set_bias_level(struct snd_soc_codec *codec, ret = snd_soc_write(codec, WM8940_POWER1, pwr_reg); break; } + codec->bias_level = level; return ret; }