]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: soc-pcm.c: call __soc_pcm_close() in soc_pcm_close()
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Mon, 22 Aug 2022 02:35:32 +0000 (02:35 +0000)
committerMark Brown <broonie@kernel.org>
Thu, 25 Aug 2022 16:58:30 +0000 (17:58 +0100)
commit7ebbe66f05f8d148efa141e126061372d479dd5f
tree46ebef9de40f2bd05d0e460de3f152f06278bf5a
parent00c59708af5a24be7e9f820da3fdd4bcc4281d75
ASoC: soc-pcm.c: call __soc_pcm_close() in soc_pcm_close()

commit dc62d188e0da6d6 ("ASoC: soc-pcm: Fix and cleanup DPCM locking")
added __soc_pcm_close() for non-lock version of soc_pcm_close().
But soc_pcm_close() is not using it. It is no problem, but confusable.

static int __soc_pcm_close(...)
{
=> return soc_pcm_clean(rtd, substream, 0);
}

static int soc_pcm_close(...)
{
...
snd_soc_dpcm_mutex_lock(rtd);
=> soc_pcm_clean(rtd, substream, 0);
snd_soc_dpcm_mutex_unlock(rtd);
return 0;
}

This patch use it.

Fixes: dc62d188e0da6d6 ("ASoC: soc-pcm: Fix and cleanup DPCM locking")
Cc: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/87czctgg3w.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-pcm.c