Skip to content

Commit d5bb69d

Browse files
Wolfram Sangbroonie
authored andcommitted
ASoC: sh: rcar: dma: : use proper DMAENGINE API for termination
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 <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent 2ba9078 commit d5bb69d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sound/soc/sh/rcar/dma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ static int rsnd_dmaen_stop(struct rsnd_mod *mod,
102102
struct rsnd_dmaen *dmaen = rsnd_dma_to_dmaen(dma);
103103

104104
if (dmaen->chan)
105-
dmaengine_terminate_all(dmaen->chan);
105+
dmaengine_terminate_sync(dmaen->chan);
106106

107107
return 0;
108108
}

0 commit comments

Comments
 (0)