From: Lars-Peter Clausen Date: Mon, 29 Sep 2014 09:40:41 +0000 (+0200) Subject: ASoC: rx51: Use snd_soc_dapm_to_codec() instead of dapm->codec X-Git-Tag: v4.14-rc1~6228^2~90^2~12^2~2 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=a761f87f367a2a172cbc62d0e88eabe175d349a8;p=platform%2Fkernel%2Flinux-rpi.git ASoC: rx51: Use snd_soc_dapm_to_codec() instead of dapm->codec The CODEC struct in the snd_soc_dapm_context struct is deprecated and scheduled for removal. Use the snd_soc_dapm_to_codec() function instead. Signed-off-by: Lars-Peter Clausen Acked-by: Jarkko Nikula Signed-off-by: Mark Brown --- diff --git a/sound/soc/omap/rx51.c b/sound/soc/omap/rx51.c index 943922c..b10ae80 100644 --- a/sound/soc/omap/rx51.c +++ b/sound/soc/omap/rx51.c @@ -168,7 +168,7 @@ static int rx51_spk_event(struct snd_soc_dapm_widget *w, static int rx51_hp_event(struct snd_soc_dapm_widget *w, struct snd_kcontrol *k, int event) { - struct snd_soc_codec *codec = w->dapm->codec; + struct snd_soc_codec *codec = snd_soc_dapm_to_codec(w->dapm); if (SND_SOC_DAPM_EVENT_ON(event)) tpa6130a2_stereo_enable(codec, 1);