ASoC: adau17x1: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / adau1761.c
index 5518ebd6947c5f28329fb474b4b313920f5e94ec..3dddb286d08dd31f7a121bd24277220d3ac9eeb2 100644 (file)
@@ -255,7 +255,8 @@ static const struct snd_kcontrol_new adau1761_input_mux_control =
 static int adau1761_dejitter_fixup(struct snd_soc_dapm_widget *w,
        struct snd_kcontrol *kcontrol, int event)
 {
-       struct adau *adau = snd_soc_codec_get_drvdata(w->codec);
+       struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm);
+       struct adau *adau = snd_soc_codec_get_drvdata(codec);
 
        /* After any power changes have been made the dejitter circuit
         * has to be reinitialized. */