aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9712.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm9712.c')
-rw-r--r--sound/soc/codecs/wm9712.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/sound/soc/codecs/wm9712.c b/sound/soc/codecs/wm9712.c
index d2f224d62744..3ca42a35e03a 100644
--- a/sound/soc/codecs/wm9712.c
+++ b/sound/soc/codecs/wm9712.c
@@ -432,10 +432,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
432 432
433static int wm9712_add_widgets(struct snd_soc_codec *codec) 433static int wm9712_add_widgets(struct snd_soc_codec *codec)
434{ 434{
435 snd_soc_dapm_new_controls(codec, wm9712_dapm_widgets, 435 struct snd_soc_dapm_context *dapm = &codec->dapm;
436 ARRAY_SIZE(wm9712_dapm_widgets));
437 436
438 snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 437 snd_soc_dapm_new_controls(dapm, wm9712_dapm_widgets,
438 ARRAY_SIZE(wm9712_dapm_widgets));
439 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
439 440
440 return 0; 441 return 0;
441} 442}
@@ -570,7 +571,7 @@ static int wm9712_set_bias_level(struct snd_soc_codec *codec,
570 ac97_write(codec, AC97_POWERDOWN, 0xffff); 571 ac97_write(codec, AC97_POWERDOWN, 0xffff);
571 break; 572 break;
572 } 573 }
573 codec->bias_level = level; 574 codec->dapm.bias_level = level;
574 return 0; 575 return 0;
575} 576}
576 577