aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/sh/fsi.c
diff options
context:
space:
mode:
Diffstat (limited to 'sound/soc/sh/fsi.c')
-rw-r--r--sound/soc/sh/fsi.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/sh/fsi.c b/sound/soc/sh/fsi.c
index c76344350e44..66fddec9543d 100644
--- a/sound/soc/sh/fsi.c
+++ b/sound/soc/sh/fsi.c
@@ -1297,9 +1297,14 @@ static int fsi_dma_transfer(struct fsi_priv *fsi, struct fsi_stream *io)
1297 struct snd_pcm_substream *substream = io->substream; 1297 struct snd_pcm_substream *substream = io->substream;
1298 struct dma_async_tx_descriptor *desc; 1298 struct dma_async_tx_descriptor *desc;
1299 int is_play = fsi_stream_is_play(fsi, io); 1299 int is_play = fsi_stream_is_play(fsi, io);
1300 enum dma_data_direction dir = is_play ? DMA_TO_DEVICE : DMA_FROM_DEVICE; 1300 enum dma_transfer_direction dir;
1301 int ret = -EIO; 1301 int ret = -EIO;
1302 1302
1303 if (is_play)
1304 dir = DMA_MEM_TO_DEV;
1305 else
1306 dir = DMA_DEV_TO_MEM;
1307
1303 desc = dmaengine_prep_dma_cyclic(io->chan, 1308 desc = dmaengine_prep_dma_cyclic(io->chan,
1304 substream->runtime->dma_addr, 1309 substream->runtime->dma_addr,
1305 snd_pcm_lib_buffer_bytes(substream), 1310 snd_pcm_lib_buffer_bytes(substream),