* registering multiple cards
@ 2011-01-11 11:27 Koul, Vinod
2011-01-11 11:28 ` Mark Brown
0 siblings, 1 reply; 3+ messages in thread
From: Koul, Vinod @ 2011-01-11 11:27 UTC (permalink / raw)
To: alsa-devel@alsa-project.org; +Cc: Mark Brown, Bensaid, Selma, Liam Girdwood
Hi,
Currently snd_soc_register_card is internal soc-core API and is called from
soc-probe. And probe always assumes it is a single device, so how do we add
up two cards?
I saw a note on this that it will exposed so that drivers can register.
What is that plan to do that, and meanwhile what can be done to solve this?
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: registering multiple cards
2011-01-11 11:27 registering multiple cards Koul, Vinod
@ 2011-01-11 11:28 ` Mark Brown
2011-01-13 6:45 ` Koul, Vinod
0 siblings, 1 reply; 3+ messages in thread
From: Mark Brown @ 2011-01-11 11:28 UTC (permalink / raw)
To: Koul, Vinod; +Cc: alsa-devel@alsa-project.org, Bensaid, Selma, Liam Girdwood
On Tue, Jan 11, 2011 at 04:57:14PM +0530, Koul, Vinod wrote:
> Currently snd_soc_register_card is internal soc-core API and is called from
> soc-probe. And probe always assumes it is a single device, so how do we add
> up two cards?
> I saw a note on this that it will exposed so that drivers can register.
> What is that plan to do that, and meanwhile what can be done to solve this?
Just register two soc-audio devices. Calling register_card() directly
will just make the API a bit nicer, it shouldn't add any new features.
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: registering multiple cards
2011-01-11 11:28 ` Mark Brown
@ 2011-01-13 6:45 ` Koul, Vinod
0 siblings, 0 replies; 3+ messages in thread
From: Koul, Vinod @ 2011-01-13 6:45 UTC (permalink / raw)
To: Mark Brown; +Cc: alsa-devel@alsa-project.org, Bensaid, Selma, Liam Girdwood
> > Currently snd_soc_register_card is internal soc-core API and is called from
> > soc-probe. And probe always assumes it is a single device, so how do we add
> > up two cards?
>
> > I saw a note on this that it will exposed so that drivers can register.
> > What is that plan to do that, and meanwhile what can be done to solve this?
>
>
> Just register two soc-audio devices. Calling register_card() directly
> will just make the API a bit nicer, it shouldn't add any new features.
Okay, I have tried to do that and sent the patch.
This keeps the existing method of registration "as is" while exposing API.
I was able to test this out on our driver in both ways.
Didn't add any code, just flipped things around.
~Vinod
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2011-01-13 6:46 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-01-11 11:27 registering multiple cards Koul, Vinod
2011-01-11 11:28 ` Mark Brown
2011-01-13 6:45 ` Koul, Vinod
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.