On Mon, Mar 05, 2012 at 09:07:09PM +0800, Shawn Guo wrote:
On Mon, Mar 05, 2012 at 11:56:12AM +0000, Mark Brown wrote:
In that case they should either both be using the same device or should have some sort of parent/child/sibling relationship.
Sorry, I do not understand it. Can you elaborate it a little bit?
The DMA and SSI drivers should have some relationship with each other if they're the same piece of hardware. The machine driver certainly shouldn't be creating either of them.
Either way the machine driver really shouldn't be involved in instantiating things, perhaps arch/arm but not the audio machine driver.
So you are saying neither what tegra_wm8903 and tegra_alc5632 are doing (registering pcm device in machine driver) nor what imx-ssi is doing (registering pcm device in DAI driver) is correct? Can you please make it clear what's the right thing to do?
The above.