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

Sangsu Park sangsu at gmail.com
Tue Jan 3 01:09:20 CET 2012


On Mon, Jan 2, 2012 at 10:19 PM, Mark Brown
<broonie at opensource.wolfsonmicro.com> wrote:
> On Mon, Jan 02, 2012 at 05:15:10PM +0900, Sangsu Park 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 uses runtime's pcm_ops instead of global pcm_ops for each DAIs. So
>> each DAIs can have different ASoC core PCM operations. This is needed to
>> support multiple DAIs.
>
> Applied, thanks.
>
> Actually it's not even allocating them dynamically as we already had the
> allocation happening.  :/

You're right. but I don't want to happen any confusion :)


More information about the Alsa-devel mailing list