diff options
Diffstat (limited to 'sound/soc/codecs/wm8955.c')
-rw-r--r-- | sound/soc/codecs/wm8955.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/sound/soc/codecs/wm8955.c b/sound/soc/codecs/wm8955.c index 2ac35b0be86a..7167dfc96aa7 100644 --- a/sound/soc/codecs/wm8955.c +++ b/sound/soc/codecs/wm8955.c | |||
@@ -23,7 +23,6 @@ | |||
23 | #include <sound/pcm.h> | 23 | #include <sound/pcm.h> |
24 | #include <sound/pcm_params.h> | 24 | #include <sound/pcm_params.h> |
25 | #include <sound/soc.h> | 25 | #include <sound/soc.h> |
26 | #include <sound/soc-dapm.h> | ||
27 | #include <sound/initval.h> | 26 | #include <sound/initval.h> |
28 | #include <sound/tlv.h> | 27 | #include <sound/tlv.h> |
29 | #include <sound/wm8955.h> | 28 | #include <sound/wm8955.h> |
@@ -576,13 +575,14 @@ static const struct snd_soc_dapm_route wm8955_intercon[] = { | |||
576 | 575 | ||
577 | static int wm8955_add_widgets(struct snd_soc_codec *codec) | 576 | static int wm8955_add_widgets(struct snd_soc_codec *codec) |
578 | { | 577 | { |
578 | struct snd_soc_dapm_context *dapm = &codec->dapm; | ||
579 | |||
579 | snd_soc_add_controls(codec, wm8955_snd_controls, | 580 | snd_soc_add_controls(codec, wm8955_snd_controls, |
580 | ARRAY_SIZE(wm8955_snd_controls)); | 581 | ARRAY_SIZE(wm8955_snd_controls)); |
581 | 582 | ||
582 | snd_soc_dapm_new_controls(codec, wm8955_dapm_widgets, | 583 | snd_soc_dapm_new_controls(dapm, wm8955_dapm_widgets, |
583 | ARRAY_SIZE(wm8955_dapm_widgets)); | 584 | ARRAY_SIZE(wm8955_dapm_widgets)); |
584 | 585 | snd_soc_dapm_add_routes(dapm, wm8955_intercon, | |
585 | snd_soc_dapm_add_routes(codec, wm8955_intercon, | ||
586 | ARRAY_SIZE(wm8955_intercon)); | 586 | ARRAY_SIZE(wm8955_intercon)); |
587 | 587 | ||
588 | return 0; | 588 | return 0; |
@@ -786,7 +786,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec, | |||
786 | break; | 786 | break; |
787 | 787 | ||
788 | case SND_SOC_BIAS_STANDBY: | 788 | case SND_SOC_BIAS_STANDBY: |
789 | if (codec->bias_level == SND_SOC_BIAS_OFF) { | 789 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
790 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), | 790 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8955->supplies), |
791 | wm8955->supplies); | 791 | wm8955->supplies); |
792 | if (ret != 0) { | 792 | if (ret != 0) { |
@@ -850,7 +850,7 @@ static int wm8955_set_bias_level(struct snd_soc_codec *codec, | |||
850 | wm8955->supplies); | 850 | wm8955->supplies); |
851 | break; | 851 | break; |
852 | } | 852 | } |
853 | codec->bias_level = level; | 853 | codec->dapm.bias_level = level; |
854 | return 0; | 854 | return 0; |
855 | } | 855 | } |
856 | 856 | ||