ASoC: adau17x1: Replace w->codec with snd_soc_dapm_to_codec(w->dapm)
[firefly-linux-kernel-4.4.55.git] / sound / soc / codecs / adau1781.c
index e9fc00fb13ddf65597513fe58652183776b71d99..aa6a37cc44b70096fcc1998e848187d1d19be908 100644 (file)
@@ -174,7 +174,7 @@ static const struct snd_kcontrol_new adau1781_mono_mixer_controls[] = {
 static int adau1781_dejitter_fixup(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);
        struct adau *adau = snd_soc_codec_get_drvdata(codec);
 
        /* After any power changes have been made the dejitter circuit