All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH RFC] ASoC: sh: rcar: dma: : use proper DMAENGINE API for termination
@ 2021-06-23 10:05 ` Wolfram Sang
  0 siblings, 0 replies; 8+ messages in thread
From: Wolfram Sang @ 2021-06-23 10:05 UTC (permalink / raw)
  To: alsa-devel
  Cc: linux-renesas-soc, Kuninori Morimoto, Wolfram Sang,
	Liam Girdwood, Mark Brown, Jaroslav Kysela, Takashi Iwai,
	linux-kernel

dmaengine_terminate_all() is deprecated in favor of explicitly saying if
it should be sync or async. Here, we want dmaengine_terminate_sync()
because there is no other synchronization code in the driver to handle
an async case.

Signed-off-by: Wolfram Sang <wsa+renesas@sang-engineering.com>
---

Morimoto-san, can you please double check if this works. I don't know
this driver very well. Thank you!

 sound/soc/sh/rcar/dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/sh/rcar/dma.c b/sound/soc/sh/rcar/dma.c
index 95aa26d62e4f..d1b46057df9e 100644
--- a/sound/soc/sh/rcar/dma.c
+++ b/sound/soc/sh/rcar/dma.c
@@ -101,7 +101,7 @@ static int rsnd_dmaen_stop(struct rsnd_mod *mod,
 	struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma);
 
 	if (dmaen->chan)
-		dmaengine_terminate_all(dmaen->chan);
+		dmaengine_terminate_sync(dmaen->chan);
 
 	return 0;
 }
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2021-10-04  9:47 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-06-23 10:05 [PATCH RFC] ASoC: sh: rcar: dma: : use proper DMAENGINE API for termination Wolfram Sang
2021-06-23 10:05 ` Wolfram Sang
2021-07-12 10:46 ` Mark Brown
2021-07-12 10:46   ` Mark Brown
2021-10-04  1:04 ` Yoshihiro Shimoda
2021-10-04  1:04   ` Yoshihiro Shimoda
2021-10-04  9:46   ` Wolfram Sang
2021-10-04  9:46     ` Wolfram Sang

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.