aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStefan Agner <stefan@agner.ch>2017-04-20 02:36:07 -0400
committerMark Brown <broonie@kernel.org>2017-04-21 12:59:34 -0400
commit24dbd9edb668e2376ce871199f5ee4fd59c62276 (patch)
tree790a3c0fa37610304f74cf54641a661efa8f042c
parenta5de5b74a50113564a1e0850e2da96c37c35e55d (diff)
ASoC: fsl_asrc_dma: use correct direction enum type
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>
-rw-r--r--sound/soc/fsl/fsl_asrc_dma.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/fsl/fsl_asrc_dma.c b/sound/soc/fsl/fsl_asrc_dma.c
index dc30d780f874..282d841840b1 100644
--- a/sound/soc/fsl/fsl_asrc_dma.c
+++ b/sound/soc/fsl/fsl_asrc_dma.c
@@ -76,7 +76,7 @@ static int fsl_asrc_dma_prepare_and_submit(struct snd_pcm_substream *substream)
76 pair->dma_chan[!dir], runtime->dma_addr, 76 pair->dma_chan[!dir], runtime->dma_addr,
77 snd_pcm_lib_buffer_bytes(substream), 77 snd_pcm_lib_buffer_bytes(substream),
78 snd_pcm_lib_period_bytes(substream), 78 snd_pcm_lib_period_bytes(substream),
79 dir == OUT ? DMA_TO_DEVICE : DMA_FROM_DEVICE, flags); 79 dir == OUT ? DMA_MEM_TO_DEV : DMA_DEV_TO_MEM, flags);
80 if (!pair->desc[!dir]) { 80 if (!pair->desc[!dir]) {
81 dev_err(dev, "failed to prepare slave DMA for Front-End\n"); 81 dev_err(dev, "failed to prepare slave DMA for Front-End\n");
82 return -ENOMEM; 82 return -ENOMEM;