Skip to content

Commit

Permalink
ASoC: dmaengine_pcm: use dmaengine cyclic wrapper
Browse files Browse the repository at this point in the history
commit 4a163c8 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

Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
  • Loading branch information
Vinod Koul authored and Mark Brown committed Mar 26, 2012
1 parent 4a163c8 commit 41ba6b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/soc-dmaengine-pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 41ba6b7

Please sign in to comment.