ASoC: siu: don't use DMA device for channel filtering
authorGuennadi Liakhovetski <g.liakhovetski@gmx.de>
Thu, 5 Jul 2012 10:29:38 +0000 (12:29 +0200)
committerVinod Koul <vinod.koul@linux.intel.com>
Fri, 20 Jul 2012 05:53:44 +0000 (11:23 +0530)
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>
sound/soc/sh/siu_pcm.c

index 3fdc801eb758b71ca5c7a623eaf5b23b03d96423..488f9becb44f3a6653dd66a72e1881d8c2168694 100644 (file)
@@ -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;
 }
@@ -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) {