diff options
Diffstat (limited to 'sound/soc/codecs/wm8728.c')
-rw-r--r-- | sound/soc/codecs/wm8728.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/wm8728.c b/sound/soc/codecs/wm8728.c index 55c7fb4fc786..f1a173e6ec33 100644 --- a/sound/soc/codecs/wm8728.c +++ b/sound/soc/codecs/wm8728.c | |||
@@ -170,7 +170,7 @@ static int wm8728_set_bias_level(struct snd_soc_codec *codec, | |||
170 | case SND_SOC_BIAS_ON: | 170 | case SND_SOC_BIAS_ON: |
171 | case SND_SOC_BIAS_PREPARE: | 171 | case SND_SOC_BIAS_PREPARE: |
172 | case SND_SOC_BIAS_STANDBY: | 172 | case SND_SOC_BIAS_STANDBY: |
173 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { | 173 | if (snd_soc_codec_get_bias_level(codec) == SND_SOC_BIAS_OFF) { |
174 | /* Power everything up... */ | 174 | /* Power everything up... */ |
175 | reg = snd_soc_read(codec, WM8728_DACCTL); | 175 | reg = snd_soc_read(codec, WM8728_DACCTL); |
176 | snd_soc_write(codec, WM8728_DACCTL, reg & ~0x4); | 176 | snd_soc_write(codec, WM8728_DACCTL, reg & ~0x4); |
@@ -185,7 +185,6 @@ static int wm8728_set_bias_level(struct snd_soc_codec *codec, | |||
185 | snd_soc_write(codec, WM8728_DACCTL, reg | 0x4); | 185 | snd_soc_write(codec, WM8728_DACCTL, reg | 0x4); |
186 | break; | 186 | break; |
187 | } | 187 | } |
188 | codec->dapm.bias_level = level; | ||
189 | return 0; | 188 | return 0; |
190 | } | 189 | } |
191 | 190 | ||