ASoC: fsl_asrc_dma: use correct direction enum type
authorStefan Agner <stefan@agner.ch>
Thu, 20 Apr 2017 06:36:07 +0000 (23:36 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 21 Apr 2017 16:59:34 +0000 (17:59 +0100)
The direction argument is of type enum dma_transfer_direction, and
not enum dma_data_direction. The enumeration values are the same
so this did not had an effect in practise.

Signed-off-by: Stefan Agner <stefan@agner.ch>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/fsl/fsl_asrc_dma.c

index dc30d780f8742437d9fd6ef3db7cd0ada76c9013..282d841840b1cfbea8d1ca97c3b764d21101d15c 100644 (file)
@@ -76,7 +76,7 @@ static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream)
                        pair->dma_chan[!dir], runtime->dma_addr,
                        snd_pcm_lib_buffer_bytes(substream),
                        snd_pcm_lib_period_bytes(substream),
-                       dir == OUT ? DMA_TO_DEVICE : DMA_FROM_DEVICE, flags);
+                       dir == OUT ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, flags);
        if (!pair->desc[!dir]) {
                dev_err(dev, "failed to prepare slave DMA for Front-End\n");
                return -ENOMEM;