diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2015-05-03 19:27:10 +0200 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2015-05-04 13:51:20 +0100 |
commit | 1a3e2f1d6f65cb7cfb1e504e4337f1d31510ca6f (patch) | |
tree | da018d2ae02f6cf246b92a1c16839a4a97b12eb1 /sound/soc/samsung | |
parent | d01d7d3dba3dc1e5fbf291f98dba6e8ff221f9f2 (diff) | |
download | op-kernel-dev-1a3e2f1d6f65cb7cfb1e504e4337f1d31510ca6f.zip op-kernel-dev-1a3e2f1d6f65cb7cfb1e504e4337f1d31510ca6f.tar.gz |
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 <lars@metafoo.de>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/samsung')
-rw-r--r-- | sound/soc/samsung/speyside.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index 2dcb988..d1ae21c5 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) |