[alsa-devel] Multiple asoc cards issue?

Le Gall, Louis louis.le.gall at intel.com
Fri Aug 19 18:34:26 CEST 2011


 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?


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.

More information about the Alsa-devel mailing list