[alsa-devel] [PATCH v1 2/5] ASoC: mmp: add audio dma support

zhangfei gao zhangfei.gao at gmail.com
Thu Jun 7 09:17:30 EDT 2012


On Thu, Jun 7, 2012 at 7:20 PM, Vinod Koul <vinod.koul at linux.intel.com> wrote:
> On Thu, 2012-06-07 at 18:44 +0800, zhangfei gao wrote:
>> Only exception is dmaengine_slave_config, since we have some specific config.
> And why?
>
>> +static bool filter(struct dma_chan *chan, void *param)
>> +{
>> +     struct mmp_dma_data *dma_data = param;
>> +     bool found = false;
>> +     char *devname;
>> +
>> +     devname = kasprintf(GFP_KERNEL, "%s.%d", dma_data->dma_res->name,
>> +             dma_data->ssp_id);
>> +     if ((strcmp(dev_name(chan->device->dev), devname) == 0) &&
>> +             (chan->chan_id == dma_data->dma_res->start)) {
>> +             chan->private = &dma_data->tdma_data;
> chan->private is deprecated and should not be used

Thanks for the info, will update accordingly.
The concern is DMA_SLAVE_BUSWIDTH_4_BYTES is used for S20, S24, S32.
And our controller handles differently, though they not seen much.

Besides, dmaengine_slave_config still have to be used for src/dst_addr
and src/dst_maxburst.

>> +             found = true;
>> +     }
>> +
>> +     kfree(devname);
>> +     return found;
>> +}
>
>
> --
> ~Vinod
>



More information about the linux-arm-kernel mailing list