diff options
Diffstat (limited to 'sound/soc/codecs/wm8985.c')
-rw-r--r-- | sound/soc/codecs/wm8985.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/sound/soc/codecs/wm8985.c b/sound/soc/codecs/wm8985.c index fd2e7cca1228..c3c8fd23d503 100644 --- a/sound/soc/codecs/wm8985.c +++ b/sound/soc/codecs/wm8985.c | |||
@@ -533,10 +533,11 @@ static int eqmode_put(struct snd_kcontrol *kcontrol, | |||
533 | 533 | ||
534 | static int wm8985_add_widgets(struct snd_soc_codec *codec) | 534 | static int wm8985_add_widgets(struct snd_soc_codec *codec) |
535 | { | 535 | { |
536 | snd_soc_dapm_new_controls(codec, wm8985_dapm_widgets, | 536 | struct snd_soc_dapm_context *dapm = &codec->dapm; |
537 | ARRAY_SIZE(wm8985_dapm_widgets)); | ||
538 | 537 | ||
539 | snd_soc_dapm_add_routes(codec, audio_map, | 538 | snd_soc_dapm_new_controls(dapm, wm8985_dapm_widgets, |
539 | ARRAY_SIZE(wm8985_dapm_widgets)); | ||
540 | snd_soc_dapm_add_routes(dapm, audio_map, | ||
540 | ARRAY_SIZE(audio_map)); | 541 | ARRAY_SIZE(audio_map)); |
541 | return 0; | 542 | return 0; |
542 | } | 543 | } |
@@ -879,7 +880,7 @@ static int wm8985_set_bias_level(struct snd_soc_codec *codec, | |||
879 | 1 << WM8985_VMIDSEL_SHIFT); | 880 | 1 << WM8985_VMIDSEL_SHIFT); |
880 | break; | 881 | break; |
881 | case SND_SOC_BIAS_STANDBY: | 882 | case SND_SOC_BIAS_STANDBY: |
882 | if (codec->bias_level == SND_SOC_BIAS_OFF) { | 883 | if (codec->dapm.bias_level == SND_SOC_BIAS_OFF) { |
883 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8985->supplies), | 884 | ret = regulator_bulk_enable(ARRAY_SIZE(wm8985->supplies), |
884 | wm8985->supplies); | 885 | wm8985->supplies); |
885 | if (ret) { | 886 | if (ret) { |
@@ -939,7 +940,7 @@ static int wm8985_set_bias_level(struct snd_soc_codec *codec, | |||
939 | break; | 940 | break; |
940 | } | 941 | } |
941 | 942 | ||
942 | codec->bias_level = level; | 943 | codec->dapm.bias_level = level; |
943 | return 0; | 944 | return 0; |
944 | } | 945 | } |
945 | 946 | ||