diff options
Diffstat (limited to 'sound/soc/codecs/wm8523.c')
-rw-r--r-- | sound/soc/codecs/wm8523.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8523.c b/sound/soc/codecs/wm8523.c index deca79ea2b4b..5eb2f501ce32 100644 --- a/sound/soc/codecs/wm8523.c +++ b/sound/soc/codecs/wm8523.c | |||
@@ -24,7 +24,6 @@ | |||
24 | #include <sound/pcm.h> | 24 | #include <sound/pcm.h> |
25 | #include <sound/pcm_params.h> | 25 | #include <sound/pcm_params.h> |
26 | #include <sound/soc.h> | 26 | #include <sound/soc.h> |
27 | #include <sound/soc-dapm.h> | ||
28 | #include <sound/initval.h> | 27 | #include <sound/initval.h> |
29 | #include <sound/tlv.h> | 28 | #include <sound/tlv.h> |
30 | 29 | ||
@@ -109,10 +108,11 @@ static const struct snd_soc_dapm_route intercon[] = { | |||
109 | 108 | ||
110 | static int wm8523_add_widgets(struct snd_soc_codec *codec) | 109 | static int wm8523_add_widgets(struct snd_soc_codec *codec) |
111 | { | 110 | { |
112 | snd_soc_dapm_new_controls(codec, wm8523_dapm_widgets, | 111 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
113 | ARRAY_SIZE(wm8523_dapm_widgets)); | ||
114 | 112 | ||
115 | snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); | 113 | snd_soc_dapm_new_controls(dapm, wm8523_dapm_widgets, |
114 | ARRAY_SIZE(wm8523_dapm_widgets)); | ||
115 | snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon)); | ||
116 | 116 | ||
117 | return 0; | 117 | return 0; |
118 | } | 118 | } |
@@ -327,7 +327,7 @@ static int wm8523_set_bias_level(struct snd_soc_codec *codec, | |||
327 | break; | 327 | break; |
328 | 328 | ||
329 | case SND_SOC_BIAS_STANDBY: | 329 | case SND_SOC_BIAS_STANDBY: |
330 | if (codec->bias_level == SND_SOC_BIAS_OFF) { | 330 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
331 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies), | 331 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8523->supplies), |
332 | wm8523->supplies); | 332 | wm8523->supplies); |
333 | if (ret != 0) { | 333 | if (ret != 0) { |
@@ -366,7 +366,7 @@ static int wm8523_set_bias_level(struct snd_soc_codec *codec, | |||
366 | wm8523->supplies); | 366 | wm8523->supplies); |
367 | break; | 367 | break; |
368 | } | 368 | } |
369 | codec->bias_level = level; | 369 | codec->dapm.bias_level = level; |
370 | return 0; | 370 | return 0; |
371 | } | 371 | } |
372 | 372 | ||