]> git.karo-electronics.de Git - karo-tx-linux.git/commitdiff
ASoC: wm8940: Properly set codec->dapm.bias_level
authorAxel Lin <axel.lin@gmail.com>
Wed, 26 Oct 2011 01:53:41 +0000 (09:53 +0800)
committerPaul Gortmaker <paul.gortmaker@windriver.com>
Fri, 17 Aug 2012 19:35:35 +0000 (15:35 -0400)
commit 5927f94700e860ae27ff24e7f3bc9e4f7b9922eb upstream.

Reported-by: Chris Paulson-Ellis <chris@edesix.com>
Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
[PG: in .34 it uses codec->bias_level and not codec->dapm.bias_level]
Signed-off-by: Paul Gortmaker <paul.gortmaker@windriver.com>
sound/soc/codecs/wm8940.c

index 0c04b476487f40f85cb1358ad7ba829c8b89b772..0dab4fe3ce9aa23a799684415653cdf5f5c73ca3 100644 (file)
@@ -473,6 +473,8 @@ static int wm8940_set_bias_level(struct snd_soc_codec *codec,
                break;
        }
 
+       codec->bias_level = level;
+
        return ret;
 }