[alsa-devel] [PATCH v1 2/5] ASoC: mmp: add audio dma support
Vinod Koul
vinod.koul at linux.intel.com
Thu Jun 7 13:20:25 CEST 2012
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
> + found = true;
> + }
> +
> + kfree(devname);
> + return found;
> +}
--
~Vinod
--
To unsubscribe from this list: send the line "unsubscribe alsa-devel" in
the body of a message to majordomo at vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
More information about the Alsa-devel
mailing list