aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm9713.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/codecs/wm9713.c')
-rw-r--r--sound/soc/codecs/wm9713.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sound/soc/codecs/wm9713.c b/sound/soc/codecs/wm9713.c
index 7da13b07a53..87b236b1601 100644
--- a/sound/soc/codecs/wm9713.c
+++ b/sound/soc/codecs/wm9713.c
@@ -647,10 +647,12 @@ static const struct snd_soc_dapm_route audio_map[] = {
647 647
648static int wm9713_add_widgets(struct snd_soc_codec *codec) 648static int wm9713_add_widgets(struct snd_soc_codec *codec)
649{ 649{
650 snd_soc_dapm_new_controls(codec, wm9713_dapm_widgets, 650 struct snd_soc_dapm_context *dapm = &codec->dapm;
651
652 snd_soc_dapm_new_controls(dapm, wm9713_dapm_widgets,
651 ARRAY_SIZE(wm9713_dapm_widgets)); 653 ARRAY_SIZE(wm9713_dapm_widgets));
652 654
653 snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map)); 655 snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
654 656
655 return 0; 657 return 0;
656} 658}
@@ -1147,7 +1149,7 @@ static int wm9713_set_bias_level(struct snd_soc_codec *codec,
1147 ac97_write(codec, AC97_POWERDOWN, 0xffff); 1149 ac97_write(codec, AC97_POWERDOWN, 0xffff);
1148 break; 1150 break;
1149 } 1151 }
1150 codec->bias_level = level; 1152 codec->dapm.bias_level = level;
1151 return 0; 1153 return 0;
1152} 1154}
1153 1155