From: Lars-Peter Clausen Date: Sun, 3 May 2015 17:27:07 +0000 (+0200) Subject: ASoC: smdk_wm8994: Use card DAPM context to access widgets X-Git-Tag: Ubuntu-snapdragon-4.4.0-1029.32~6393^2~38^2~4^3~3 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=e6963005b2a36a11dbc059006ba52a10e2fecfbe;p=mirror_ubuntu-zesty-kernel.git ASoC: smdk_wm8994: Use card DAPM context to access widgets The dapm field of the snd_soc_codec struct will eventually be removed (replaced with the DAPM context from the component embedded inside the CODEC). Replace its usage with the card's DAPM context. The idea is that DAPM is hierarchical and with the card at the root it is possible to access widgets from other contexts through the card context. Signed-off-by: Lars-Peter Clausen Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/smdk_wm8994.c b/sound/soc/samsung/smdk_wm8994.c index d38595fbdab7..ff57b192d37d 100644 --- a/sound/soc/samsung/smdk_wm8994.c +++ b/sound/soc/samsung/smdk_wm8994.c @@ -86,8 +86,7 @@ static struct snd_soc_ops smdk_ops = { static int smdk_wm8994_init_paiftx(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 = &rtd->card->dapm; /* Other pins NC */ snd_soc_dapm_nc_pin(dapm, "HPOUT2P");