aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8711.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm8711.c')
-rw-r--r--sound/soc/codecs/wm8711.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm8711.c b/sound/soc/codecs/wm8711.c
index 54fbd76c8bca..ea2daf4da57c 100644
--- a/sound/soc/codecs/wm8711.c
+++ b/sound/soc/codecs/wm8711.c
@@ -93,10 +93,11 @@ static const struct snd_soc_dapm_route intercon[] = {
93 93
94static int wm8711_add_widgets(struct snd_soc_codec *codec) 94static int wm8711_add_widgets(struct snd_soc_codec *codec)
95{ 95{
96 snd_soc_dapm_new_controls(codec, wm8711_dapm_widgets, 96 struct snd_soc_dapm_context *dapm = &codec->dapm;
97 ARRAY_SIZE(wm8711_dapm_widgets));
98 97
99 snd_soc_dapm_add_routes(codec, intercon, ARRAY_SIZE(intercon)); 98 snd_soc_dapm_new_controls(dapm, wm8711_dapm_widgets,
99 ARRAY_SIZE(wm8711_dapm_widgets));
100 snd_soc_dapm_add_routes(dapm, intercon, ARRAY_SIZE(intercon));
100 101
101 return 0; 102 return 0;
102} 103}
@@ -318,7 +319,7 @@ static int wm8711_set_bias_level(struct snd_soc_codec *codec,
318 snd_soc_write(codec, WM8711_PWR, 0xffff); 319 snd_soc_write(codec, WM8711_PWR, 0xffff);
319 break; 320 break;
320 } 321 }
321 codec->bias_level = level; 322 codec->dapm.bias_level = level;
322 return 0; 323 return 0;
323} 324}
324 325