]> git.karo-electronics.de Git - mv-sheeva.git/blobdiff - sound/soc/soc-dmaengine-pcm.c
ASoC: dmaengine_pcm: use dmaengine cyclic wrapper
[mv-sheeva.git] / sound / soc / soc-dmaengine-pcm.c
index 76c038b4a970c658293e02b60e28b2da7b33aaf2..475695234b3d2f37d843e34e2c3e8caa4df0b4c7 100644 (file)
@@ -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;