diff options
Diffstat (limited to 'sound/soc/codecs/wm8510.c')
-rw-r--r-- | sound/soc/codecs/wm8510.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8510.c b/sound/soc/codecs/wm8510.c index 8f107095760e..db0dced74843 100644 --- a/sound/soc/codecs/wm8510.c +++ b/sound/soc/codecs/wm8510.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 | 28 | ||
30 | #include "wm8510.h" | 29 | #include "wm8510.h" |
@@ -216,10 +215,11 @@ static const struct snd_soc_dapm_route audio_map[] = { | |||
216 | 215 | ||
217 | static int wm8510_add_widgets(struct snd_soc_codec *codec) | 216 | static int wm8510_add_widgets(struct snd_soc_codec *codec) |
218 | { | 217 | { |
219 | snd_soc_dapm_new_controls(codec, wm8510_dapm_widgets, | 218 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
220 | ARRAY_SIZE(wm8510_dapm_widgets)); | ||
221 | 219 | ||
222 | snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); | 220 | snd_soc_dapm_new_controls(dapm, wm8510_dapm_widgets, |
221 | ARRAY_SIZE(wm8510_dapm_widgets)); | ||
222 | snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map)); | ||
223 | 223 | ||
224 | return 0; | 224 | return 0; |
225 | } | 225 | } |
@@ -478,7 +478,7 @@ static int wm8510_set_bias_level(struct snd_soc_codec *codec, | |||
478 | case SND_SOC_BIAS_STANDBY: | 478 | case SND_SOC_BIAS_STANDBY: |
479 | power1 |= WM8510_POWER1_BIASEN | WM8510_POWER1_BUFIOEN; | 479 | power1 |= WM8510_POWER1_BIASEN | WM8510_POWER1_BUFIOEN; |
480 | 480 | ||
481 | if (codec->bias_level == SND_SOC_BIAS_OFF) { | 481 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
482 | /* Initial cap charge at VMID 5k */ | 482 | /* Initial cap charge at VMID 5k */ |
483 | snd_soc_write(codec, WM8510_POWER1, power1 | 0x3); | 483 | snd_soc_write(codec, WM8510_POWER1, power1 | 0x3); |
484 | mdelay(100); | 484 | mdelay(100); |
@@ -495,7 +495,7 @@ static int wm8510_set_bias_level(struct snd_soc_codec *codec, | |||
495 | break; | 495 | break; |
496 | } | 496 | } |
497 | 497 | ||
498 | codec->bias_level = level; | 498 | codec->dapm.bias_level = level; |
499 | return 0; | 499 | return 0; |
500 | } | 500 | } |
501 | 501 | ||