Skip to content

Commit

Permalink
ASoC: siu: don't use DMA device for channel filtering
Browse files Browse the repository at this point in the history
DMA channels are filtered based on slave IDs, no need to additionally filter
on DMA device.

Signed-off-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de>
Cc: Mark Brown <broonie@opensource.wolfsonmicro.com>
Signed-off-by: Vinod Koul <vinod.koul@linux.intel.com>
  • Loading branch information
Guennadi Liakhovetski authored and Vinod Koul committed Jul 20, 2012
1 parent 341f4dc commit 9d051dc
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions sound/soc/sh/siu_pcm.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

if (unlikely(param->dma_dev != chan->device->dev))
return false;

chan->private = &param->shdma_slave;
return true;
}
Expand Down Expand Up @@ -369,7 +366,6 @@ static int siu_pcm_open(struct snd_pcm_substream *ss)
pdata->dma_slave_rx_a;
}

param->dma_dev = pdata->dma_dev;
/* Get DMA channel */
siu_stream->chan = dma_request_channel(mask, filter, param);
if (!siu_stream->chan) {
Expand Down

0 comments on commit 9d051dc

Please sign in to comment.