13 Jan
2011
13 Jan
'11
6:45 a.m.
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