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

Mark Brown broonie at opensource.wolfsonmicro.com
Mon Jan 2 14:19:49 CET 2012

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.  :/

More information about the Alsa-devel mailing list