[alsa-devel] registering multiple cards
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
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.
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
participants (2)
-
Koul, Vinod
-
Mark Brown