[alsa-devel] [PATCH] ASoC: Allocate PCM operations dynamically to support multiple DAIs

Liam Girdwood lrg at ti.com
Fri Dec 23 10:42:01 CET 2011


On Fri, 2011-12-23 at 10:37 +0900, Sangbeom Kim wrote:
> The original code does not cover the case that two DAIs(CPU) have different
> ASoC core PCM operations(like mmap, pointer...). Currently we have only one
> global soc_pcm_ops for ASoC core PCM operation. When two DAIs have different
> pointer functions, second DAI's pointer function is set for both first DAI
> and second DAI in case of original code.
> 
> This patch allocates ASoC core PCM operations dynamically for each DAIs. So
> each DAIs can have different ASoC core PCM operations. This is needed to
> support multiple DAIs.
> 

I assume that you have two different DMA controllers (with a separate
DMA platform drivers) here ?

If so, why can you not specify each DMA platform driver in your machine
driver DAI link ?

Thanks

Liam 




More information about the Alsa-devel mailing list