diff options
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r-- | sound/soc/codecs/wm8711.c | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c index 54fbd76c8bca..97c30382d3ff 100644 --- a/sound/soc/codecs/wm8711.c +++ b/sound/soc/codecs/wm8711.c | |||
@@ -25,7 +25,6 @@ | |||
25 | #include <sound/pcm.h> | 25 | #include <sound/pcm.h> |
26 | #include <sound/pcm_params.h> | 26 | #include <sound/pcm_params.h> |
27 | #include <sound/soc.h> | 27 | #include <sound/soc.h> |
28 | #include <sound/soc-dapm.h> | ||
29 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
30 | #include <sound/initval.h> | 29 | #include <sound/initval.h> |
31 | 30 | ||
@@ -34,7 +33,6 @@ | |||
34 | /* codec private data */ | 33 | /* codec private data */ |
35 | struct wm8711_priv { | 34 | struct wm8711_priv { |
36 | enum snd_soc_control_type bus_type; | 35 | enum snd_soc_control_type bus_type; |
37 | u16 reg_cache[WM8711_CACHEREGNUM]; | ||
38 | unsigned int sysclk; | 36 | unsigned int sysclk; |
39 | }; | 37 | }; |
40 | 38 | ||
@@ -93,10 +91,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
93 | 91 | ||
94 | static int wm8711_add_widgets(struct snd_soc_codec *codec) | 92 | static int wm8711_add_widgets(struct snd_soc_codec *codec) |
95 | { | 93 | { |
96 | snd_soc_dapm_new_controls(codec, wm8711_dapm_widgets, | 94 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
97 | ARRAY_SIZE(wm8711_dapm_widgets)); | ||
98 | 95 | ||
99 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 96 | snd_soc_dapm_new_controls(dapm, wm8711_dapm_widgets, |
97 | ARRAY_SIZE(wm8711_dapm_widgets)); | ||
98 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
100 | 99 | ||
101 | return 0; | 100 | return 0; |
102 | } | 101 | } |
@@ -318,7 +317,7 @@ static int wm8711_set_bias_level(struct snd_soc_codec *codec, | |||
318 | snd_soc_write(codec, WM8711_PWR, 0xffff); | 317 | snd_soc_write(codec, WM8711_PWR, 0xffff); |
319 | break; | 318 | break; |
320 | } | 319 | } |
321 | codec->bias_level = level; | 320 | codec->dapm.bias_level = level; |
322 | return 0; | 321 | return 0; |
323 | } | 322 | } |
324 | 323 | ||