ASoC: wm8961: Replace w->codec snd_soc_dapm_to_codec(w->dapm)
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / wm8958-dsp2.c
index 3cbc82b3329288e8d16f33acaa4782dac147a542..c799cca5abeb704645687b863ccedfc6749e9ac2 100644 (file)
@@ -418,7 +418,7 @@ static void wm8958_dsp_apply(struct snd_soc_codec *codec, int path, int start)
 int wm8958_aif_ev(struct snd_soc_dapm_widget *w,
                  struct snd_kcontrol *kcontrol, int event)
 {
-       struct snd_soc_codec *codec = w->codec;
+       struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
        int i;
 
        switch (event) {