ixp4xx: fix Avila SoC audio driver compilation
[openwrt/staging/rmilecki.git] / target / linux / ixp4xx / patches-4.4 / 175-avila_hss_audio_support.patch
index 2fd6be49df9f2dbdda422f32edbae2840d876f10..72ccc00f300e58855000265d9bb8be88a18234bb 100644 (file)
 +static int avila_aic3x_init(struct snd_soc_pcm_runtime *rtd)
 +{
 +      struct snd_soc_codec *codec = rtd->codec;
-+      struct snd_soc_dapm_context *dapm = &codec->dapm;
++      struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
 +
 +  /* Add davinci-evm specific widgets */
 +  snd_soc_dapm_new_controls(dapm, aic3x_dapm_widgets,