]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - sound/soc/codecs/adau1761.c
Merge remote-tracking branches 'asoc/topic/ac97', 'asoc/topic/ad193x', 'asoc/topic...
[karo-tx-linux.git] / sound / soc / codecs / adau1761.c
index 91f60282fd2fbff8a64315ec8400b3e156a374b9..16093dc8944197e4c5e2fad2210721fe81f32bf7 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. */