ASoC: speyside: Use snd_soc_codec_get_dapm()
authorLars-Peter Clausen <lars@metafoo.de>
Sun, 3 May 2015 17:27:10 +0000 (19:27 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 4 May 2015 12:51:20 +0000 (13:51 +0100)
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 <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/samsung/speyside.c

index 2dcb988bdff21272ffed15c7073e7f4643bee70f..d1ae21c5e25320e525a8431639e811e47c264a4e 100644 (file)
@@ -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)