[alsa-devel] [PATCH v1 2/5] ASoC: mmp: add audio dma support
zhangfei gao
zhangfei.gao at gmail.com
Thu Jun 7 06:44:20 EDT 2012
On Thu, Jun 7, 2012 at 6:05 PM, Vinod Koul <vinod.koul at linux.intel.com> wrote:
> On Thu, 2012-06-07 at 17:59 +0800, zhangfei gao wrote:
>> On Thu, Jun 7, 2012 at 5:24 PM, Vinod Koul <vinod.koul at linux.intel.com> wrote:
>> > On Mon, 2012-06-04 at 14:37 +0800, Zhangfei Gao wrote:
>> >> mmp-pcm handle audio dma based on soc-dmaengine
>> >> Support mmp and pxa910
>> > See soc-dmaengine.c. You sneed to use the library to use dmaengine.
>> >
>>
>> Thanks Vinod for kind review.
>>
>> Some confusion, only find sound/soc/soc-dmaengine-pcm.c.
>> So the driver base on the library, snd_dmaengine_pcm_open/close etc.
>> Replacing dma_request_channel etc.
>>
>> Is it right direction?
> Yes your driver should use it. See examples in other soc drivers
This driver already been ported to soc-dmaengine-pcm.c, refer
mxs-pcm.c and imx-pcm-dma-mx2.c.
Using snd_dmaengine_pcm_open, snd_dmaengine_pcm_close, etc.
Only exception is dmaengine_slave_config, since we have some specific config.
>
>
> --
> ~Vinod
>
More information about the linux-arm-kernel
mailing list