Skip to contentSkip to conversation

ASoC: dmaengine_pcm: use dmaengine cyclic wrapper

PATCH Applied Vinod Koul 2 participants 2 messages Mar 26, 2012

Subsystems (3)
lore
Share & tools
lore

Vinod Koul

author
#0 lore raw

PATCH 1/1 ASoC: dmaengine_pcm: use dmaengine cyclic wrapper

commit 4a163c82 added extra parameter to device_prep_dma_cyclic this is not required if we use the wrapper over cyclic API.

This is split from Alexedre's patch

---
 sound/soc/soc-dmaengine-pcm.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/soc-dmaengine-pcm.c +2 -2
index 76c038b..4756952 100644
@@ -143,10 +143,10 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
 	direction = snd_pcm_substream_to_dma_direction(substream);
 
 	prtd->pos = 0;
-	desc = chan->device->device_prep_dma_cyclic(chan,
+	desc = dmaengine_prep_dma_cyclic(chan,
 		substream->runtime->dma_addr,
 		snd_pcm_lib_buffer_bytes(substream),
-		snd_pcm_lib_period_bytes(substream), direction, NULL);
+		snd_pcm_lib_period_bytes(substream), direction);
 
 	if (!desc)
 		return -ENOMEM;
Signature · 1 line
1.7.0.4
Applied
#1 lore raw
Quoted 2 lines · Vinod Koul

commit 4a163c82 added extra parameter to device_prep_dma_cyclic this is not required if we use the wrapper over cyclic API.

Applied, thanks.