ASoC: Decouple DAPM from CODECs
[deliverable/linux.git] / sound / soc / codecs / wm9705.c
index a144acda751cb7578954abe12310a0759bd1dec4..58d120824498dbeb58a0034ab340edd9bfb807a6 100644 (file)
@@ -203,9 +203,11 @@ static const struct snd_soc_dapm_route audio_map[] = {
 
 static int wm9705_add_widgets(struct snd_soc_codec *codec)
 {
-       snd_soc_dapm_new_controls(codec, wm9705_dapm_widgets,
+       struct snd_soc_dapm_context *dapm = &codec->dapm;
+
+       snd_soc_dapm_new_controls(dapm, wm9705_dapm_widgets,
                                        ARRAY_SIZE(wm9705_dapm_widgets));
-       snd_soc_dapm_add_routes(codec, audio_map, ARRAY_SIZE(audio_map));
+       snd_soc_dapm_add_routes(dapm, audio_map, ARRAY_SIZE(audio_map));
 
        return 0;
 }
This page took 0.02814 seconds and 5 git commands to generate.