diff options
Diffstat (limited to 'sound/soc/codecs/wm9712.c')
-rw-r--r-- | sound/soc/codecs/wm9712.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c index d2f224d62744..bf5d4ef1a2a6 100644 --- a/sound/soc/codecs/wm9712.c +++ b/sound/soc/codecs/wm9712.c | |||
@@ -20,7 +20,6 @@ | |||
20 | #include <sound/ac97_codec.h> | 20 | #include <sound/ac97_codec.h> |
21 | #include <sound/initval.h> | 21 | #include <sound/initval.h> |
22 | #include <sound/soc.h> | 22 | #include <sound/soc.h> |
23 | #include <sound/soc-dapm.h> | ||
24 | #include "wm9712.h" | 23 | #include "wm9712.h" |
25 | 24 | ||
26 | #define WM9712_VERSION "0.4" | 25 | #define WM9712_VERSION "0.4" |
@@ -432,10 +431,11 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
432 | 431 | ||
433 | static int wm9712_add_widgets(struct snd_soc_codec *codec) | 432 | static int wm9712_add_widgets(struct snd_soc_codec *codec) |
434 | { | 433 | { |
435 | snd_soc_dapm_new_controls(codec, wm9712_dapm_widgets, | 434 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
436 | ARRAY_SIZE(wm9712_dapm_widgets)); | ||
437 | 435 | ||
438 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 436 | snd_soc_dapm_new_controls(dapm, wm9712_dapm_widgets, |
437 | ARRAY_SIZE(wm9712_dapm_widgets)); | ||
438 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); | ||
439 | 439 | ||
440 | return 0; | 440 | return 0; |
441 | } | 441 | } |
@@ -570,7 +570,7 @@ static int wm9712_set_bias_level(struct snd_soc_codec *codec, | |||
570 | ac97_write(codec, AC97_POWERDOWN, 0xffff); | 570 | ac97_write(codec, AC97_POWERDOWN, 0xffff); |
571 | break; | 571 | break; |
572 | } | 572 | } |
573 | codec->bias_level = level; | 573 | codec->dapm.bias_level = level; |
574 | return 0; | 574 | return 0; |
575 | } | 575 | } |
576 | 576 | ||