ASoC: wm8994: use the correct pointer to get the control value
authorVinod Koul <vinod.koul@intel.com>
Tue, 28 May 2013 10:11:57 +0000 (15:41 +0530)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 28 May 2013 14:10:09 +0000 (10:10 -0400)
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8994.c

index 1eb152c..62dc305 100644 (file)
@@ -1031,7 +1031,7 @@ static int aif1clk_ev(struct snd_soc_dapm_widget *w,
 {
        struct snd_soc_codec *codec = w->codec;
        struct wm8994_priv *wm8994 = snd_soc_codec_get_drvdata(codec);
-       struct wm8994 *control = codec->control_data;
+       struct wm8994 *control = wm8994->wm8994;
        int mask = WM8994_AIF1DAC1L_ENA | WM8994_AIF1DAC1R_ENA;
        int i;
        int dac;