]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: fsl_asrc_dma: Use dmaengine_terminate_async()
authorSascha Hauer <s.hauer@pengutronix.de>
Fri, 17 Jun 2022 12:01:33 +0000 (14:01 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 20 Jun 2022 10:35:45 +0000 (11:35 +0100)
commit29630bb8defc496774de120fc7385e988c44347b
tree2b12c9d3733947aecc050358b87cb86bbab74ed7
parent08e3e9bda936d7f0d396586a8a6fdbd10db44001
ASoC: fsl_asrc_dma: Use dmaengine_terminate_async()

dmaengine_terminate_all() is deprecated and should no longer be used.
Use dmaengine_terminate_async() instead. This involves no functional change
since both functions do the same.
After dmaengine_terminate_async() dmaengine_synchronize() must be called
to make sure the channel has really stopped before the underlying memory
is freed. This is done implicitly by dma_release_channel() called from
the .hw_free hook.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Link: https://lore.kernel.org/r/20220617120133.4011846-1-s.hauer@pengutronix.de
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_dma.c