[alsa-devel] Multiple asoc cards issue?

Liam Girdwood lrg at ti.com
Fri Aug 19 18:52:58 CEST 2011

On 19/08/11 17:34, Le Gall, Louis wrote:
> Hello
>  We are trying to add a new ASOC card in our build that already contains an ASOC card.
>  We facing some issue when the second card is registered (calling snd_soc_register_card () ).
>  We can see in the log when playing a sound on the first card that second card operations are called.
>  In fact, the registration of second card overwrites the operations of the structure soc_pcm_ops of the first card (with the second card operations).
>  Looking at the soc-core.c code, this structure is static so that explains the overwrite.
>  How can we register several ASOC cards on our platform in that case? Is it a bug or a limitation?

What kernel version are you using here. This shouldn't be an issue with recent kernels.


> Thanks,
> Louis
> First card = First card registered during boot process
> Second card = second card that is registred during the boot process.
> ---------------------------------------------------------------------
> Intel Corporation SAS (French simplified joint stock company)
> Registered headquarters: "Les Montalets"- 2, rue de Paris, 
> 92196 Meudon Cedex, France
> Registration Number:  302 456 199 R.C.S. NANTERRE
> Capital: 4,572,000 Euros
> This e-mail and any attachments may contain confidential material for
> the sole use of the intended recipient(s). Any review or distribution
> by others is strictly prohibited. If you are not the intended
> recipient, please contact the sender and delete all copies.
> _______________________________________________
> Alsa-devel mailing list
> Alsa-devel at alsa-project.org
> http://mailman.alsa-project.org/mailman/listinfo/alsa-devel

More information about the Alsa-devel mailing list