[alsa-devel] Multiple asoc cards issue?
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?
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.
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.
Liam
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@alsa-project.org http://mailman.alsa-project.org/mailman/listinfo/alsa-devel
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.
Liam
Sorry I forgot to mention it.
This is in Kernel 2.6.35.3 (.38 based asoc), so this have probably been fixed in more recent kernel. I will try with using a more recent one. Thanks Louis
--------------------------------------------------------------------- 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.
participants (2)
-
Le Gall, Louis
-
Liam Girdwood