Message ID | 1430674030-1388-5-git-send-email-lars@metafoo.de (mailing list archive) |
---|---|
State | Accepted |
Commit | 1a3e2f1d6f65cb7cfb1e504e4337f1d31510ca6f |
Headers | show |
On Sun, May 03, 2015 at 07:27:10PM +0200, Lars-Peter Clausen wrote: > 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> Thanks, Charles
diff --git a/sound/soc/samsung/speyside.c b/sound/soc/samsung/speyside.c index 2dcb988..d1ae21c 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)
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> --- Depends on topic/dapm --- sound/soc/samsung/speyside.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)