ixp4xx: fix Avila SoC audio driver compilation
authorJo-Philipp Wich <jo@mein.io>
Tue, 7 Jun 2016 09:13:03 +0000 (11:13 +0200)
committerJo-Philipp Wich <jo@mein.io>
Tue, 7 Jun 2016 09:15:55 +0000 (11:15 +0200)
Upstream dropped the `dapm` member of `struct snd_soc_component`, requiring
users to access it using `snd_soc_codec_get_dapm()` instead so change the
driver code to do just that.

Fixes the following build error spotted by the buildbots:

      CC [M]  sound/soc/gw-avila/gw-avila.o
    sound/soc/gw-avila/gw-avila.c: In function 'avila_aic3x_init':
    sound/soc/gw-avila/gw-avila.c:104:44: error: 'struct snd_soc_codec' has no member named 'dapm'

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
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,