Thread (20 messages) 20 messages, 4 authors, 2012-06-08

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

From: zhangfei gao <hidden>
Date: 2012-06-07 10:44:20
Also in: alsa-devel

On Thu, Jun 7, 2012 at 6:05 PM, Vinod Koul [off-list ref] wrote:
On Thu, 2012-06-07 at 17:59 +0800, zhangfei gao wrote:
quoted
On Thu, Jun 7, 2012 at 5:24 PM, Vinod Koul [off-list ref] wrote:
quoted
On Mon, 2012-06-04 at 14:37 +0800, Zhangfei Gao wrote:
quoted
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
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help