From: Lars-Peter Clausen Date: Sun, 3 May 2015 17:27:10 +0000 (+0200) Subject: ASoC: speyside: Use snd_soc_codec_get_dapm() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=1a3e2f1d6f65cb7cfb1e504e4337f1d31510ca6f;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ASoC: speyside: Use snd_soc_codec_get_dapm() The dapm field of the snd_soc_codec struct is eventually going to be removed. Replace direct access to it with snd_soc_codec_get_dapm(), which will return the DAPM context for the CODEC. Signed-off-by: Lars-Peter Clausen Acked-by: Charles Keepax Signed-off-by: Mark Brown --- diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index 2dcb988bdff2..d1ae21c5e253 100644 --- a/sound/soc/samsung/speyside.c +++ b/sound/soc/samsung/speyside.c @@ -123,7 +123,7 @@ static void speyside_set_polarity(struct snd_soc_codec *codec, gpio_direction_output(WM8996_HPSEL_GPIO, speyside_jack_polarity); /* Re-run DAPM to make sure we're using the correct mic bias */ - snd_soc_dapm_sync(&codec->dapm); + snd_soc_dapm_sync(snd_soc_codec_get_dapm(codec)); } static int speyside_wm0010_init(struct snd_soc_pcm_runtime *rtd)