Commit 9d051dc7 authored by Guennadi Liakhovetski's avatar Guennadi Liakhovetski Committed by Vinod Koul

ASoC: siu: don't use DMA device for channel filtering

DMA channels are filtered based on slave IDs, no need to additionally filter
on DMA device.
Signed-off-by: default avatarGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: default avatarVinod Koul <vinod.koul@linux.intel.com>
parent 341f4dc5
...@@ -332,9 +332,6 @@ static bool filter(struct dma_chan *chan, void *slave) ...@@ -332,9 +332,6 @@ static bool filter(struct dma_chan *chan, void *slave)
pr_debug("%s: slave ID %d\n", __func__, param->shdma_slave.slave_id); pr_debug("%s: slave ID %d\n", __func__, param->shdma_slave.slave_id);
if (unlikely(param->dma_dev != chan->device->dev))
return false;
chan->private = &param->shdma_slave; chan->private = &param->shdma_slave;
return true; return true;
} }
...@@ -369,7 +366,6 @@ static int siu_pcm_open(struct snd_pcm_substream *ss) ...@@ -369,7 +366,6 @@ static int siu_pcm_open(struct snd_pcm_substream *ss)
pdata->dma_slave_rx_a; pdata->dma_slave_rx_a;
} }
param->dma_dev = pdata->dma_dev;
/* Get DMA channel */ /* Get DMA channel */
siu_stream->chan = dma_request_channel(mask, filter, param); siu_stream->chan = dma_request_channel(mask, filter, param);
if (!siu_stream->chan) { if (!siu_stream->chan) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment