* Multiple asoc cards issue?
@ 2011-08-19 16:34 Le Gall, Louis
2011-08-19 16:52 ` Liam Girdwood
0 siblings, 1 reply; 3+ messages in thread
From: Le Gall, Louis @ 2011-08-19 16:34 UTC (permalink / raw)
To: alsa-devel@alsa-project.org
Cc: Koul, Vinod, Gaffie, FrancoisX, Bensaid, Selma
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.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple asoc cards issue?
2011-08-19 16:34 Multiple asoc cards issue? Le Gall, Louis
@ 2011-08-19 16:52 ` Liam Girdwood
2011-08-19 17:06 ` Le Gall, Louis
0 siblings, 1 reply; 3+ messages in thread
From: Liam Girdwood @ 2011-08-19 16:52 UTC (permalink / raw)
To: Le Gall, Louis
Cc: Koul, Vinod, alsa-devel@alsa-project.org, Gaffie, FrancoisX,
Bensaid, Selma
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
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: Multiple asoc cards issue?
2011-08-19 16:52 ` Liam Girdwood
@ 2011-08-19 17:06 ` Le Gall, Louis
0 siblings, 0 replies; 3+ messages in thread
From: Le Gall, Louis @ 2011-08-19 17:06 UTC (permalink / raw)
To: Liam Girdwood
Cc: Koul, Vinod, alsa-devel@alsa-project.org, Gaffie, FrancoisX,
Bensaid, Selma
> > 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.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-08-19 17:06 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 16:34 Multiple asoc cards issue? Le Gall, Louis
2011-08-19 16:52 ` Liam Girdwood
2011-08-19 17:06 ` Le Gall, Louis
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.