| Index: sound/soc/codecs/wm8400.c
|
| diff --git a/sound/soc/codecs/wm8400.c b/sound/soc/codecs/wm8400.c
|
| index 850299786e02d0d87f77e673bb093fffb68bcbdc..3c3bc079167e9936bb5722cdb1683dff14f11969 100644
|
| --- a/sound/soc/codecs/wm8400.c
|
| +++ b/sound/soc/codecs/wm8400.c
|
| @@ -26,7 +26,6 @@
|
| #include <sound/pcm.h>
|
| #include <sound/pcm_params.h>
|
| #include <sound/soc.h>
|
| -#include <sound/soc-dapm.h>
|
| #include <sound/initval.h>
|
| #include <sound/tlv.h>
|
|
|
| @@ -911,10 +910,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
|
|
|
| static int wm8400_add_widgets(struct snd_soc_codec *codec)
|
| {
|
| - snd_soc_dapm_new_controls(codec, wm8400_dapm_widgets,
|
| - ARRAY_SIZE(wm8400_dapm_widgets));
|
| + struct snd_soc_dapm_context *dapm = &codec->dapm;
|
|
|
| - snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
|
| + snd_soc_dapm_new_controls(dapm, wm8400_dapm_widgets,
|
| + ARRAY_SIZE(wm8400_dapm_widgets));
|
| + snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
|
|
|
| return 0;
|
| }
|
| @@ -1219,7 +1219,7 @@ static int wm8400_set_bias_level(struct snd_soc_codec *codec,
|
| break;
|
|
|
| case SND_SOC_BIAS_STANDBY:
|
| - if (codec->bias_level == SND_SOC_BIAS_OFF) {
|
| + if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) {
|
| ret = regulator_bulk_enable(ARRAY_SIZE(power),
|
| &power[0]);
|
| if (ret != 0) {
|
| @@ -1306,7 +1306,7 @@ static int wm8400_set_bias_level(struct snd_soc_codec *codec,
|
| break;
|
| }
|
|
|
| - codec->bias_level = level;
|
| + codec->dapm.bias_level = level;
|
| return 0;
|
| }
|
|
|
|
|