aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorVinod Koul <vinod.koul@linux.intel.com>2012-03-26 07:58:08 -0400
committerMark Brown <broonie@opensource.wolfsonmicro.com>2012-03-26 13:28:11 -0400
commit41ba6b711a40b83a877ae8242a4b3e692de91f97 (patch)
treec48ab8a184970be1a354d75b484ba878d7e7094f /sound
parent4a163c82d600e554ef79e931db6315026e1fc819 (diff)
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 Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/soc-dmaengine-pcm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/soc-dmaengine-pcm.c b/sound/soc/soc-dmaengine-pcm.c
index 76c038b4a970..475695234b3d 100644
--- a/sound/soc/soc-dmaengine-pcm.c
+++ b/sound/soc/soc-dmaengine-pcm.c
@@ -143,10 +143,10 @@ static int dmaengine_pcm_prepare_and_submit(struct snd_pcm_substream *substream)
143 direction = snd_pcm_substream_to_dma_direction(substream); 143 direction = snd_pcm_substream_to_dma_direction(substream);
144 144
145 prtd->pos = 0; 145 prtd->pos = 0;
146 desc = chan->device->device_prep_dma_cyclic(chan, 146 desc = dmaengine_prep_dma_cyclic(chan,
147 substream->runtime->dma_addr, 147 substream->runtime->dma_addr,
148 snd_pcm_lib_buffer_bytes(substream), 148 snd_pcm_lib_buffer_bytes(substream),
149 snd_pcm_lib_period_bytes(substream), direction, NULL); 149 snd_pcm_lib_period_bytes(substream), direction);
150 150
151 if (!desc) 151 if (!desc)
152 return -ENOMEM; 152 return -ENOMEM;