| Index: sound/soc/codecs/wm9713.c
|
| diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
|
| index 7da13b07a53dfdbc5559e9eb21f140334145ed10..38ed985587184fe4e3f2a4b636ae8d67e35cf60e 100644
|
| --- a/sound/soc/codecs/wm9713.c
|
| +++ b/sound/soc/codecs/wm9713.c
|
| @@ -26,7 +26,6 @@
|
| #include <sound/pcm_params.h>
|
| #include <sound/tlv.h>
|
| #include <sound/soc.h>
|
| -#include <sound/soc-dapm.h>
|
|
|
| #include "wm9713.h"
|
|
|
| @@ -647,10 +646,12 @@ static const struct snd_soc_dapm_route audio_map[] = {
|
|
|
| static int wm9713_add_widgets(struct snd_soc_codec *codec)
|
| {
|
| - snd_soc_dapm_new_controls(codec, wm9713_dapm_widgets,
|
| + struct snd_soc_dapm_context *dapm = &codec->dapm;
|
| +
|
| + snd_soc_dapm_new_controls(dapm, wm9713_dapm_widgets,
|
| ARRAY_SIZE(wm9713_dapm_widgets));
|
|
|
| - snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
|
| + snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
|
|
|
| return 0;
|
| }
|
| @@ -1147,7 +1148,7 @@ static int wm9713_set_bias_level(struct snd_soc_codec *codec,
|
| ac97_write(codec, AC97_POWERDOWN, 0xffff);
|
| break;
|
| }
|
| - codec->bias_level = level;
|
| + codec->dapm.bias_level = level;
|
| return 0;
|
| }
|
|
|
|
|