
On Mon, Oct 05, 2015 at 11:07:17AM +0100, Mark Brown wrote:
On Sat, Oct 03, 2015 at 11:01:40PM +0800, Koro Chen wrote:
Sorry I didn't make myself clear enough. In the sound/soc/mediatek/mtk-afe-pcm.c, I register two components "mtk_afe_pcm_dai_component" and "mtk_afe_hdmi_dai_component", each has its corresponding DAIs. Card0 (which is mt8173-rt5676-rt5650.c) uses DAIs from the first component, and card1 (new) uses DAIs of the second component. These two components are probed successfully and separately by card0 and card1, but card1 failed to probe another component created by snd_soc_register_platform(), which is already bound to card0.
OK, I see. We probably do want to relax that restriction, it makes more sense at the DAI level but at the component level when we have components that have a bunch of independant DAIs hanging off a DMA controler as one component (which does make sense) then it breaks.
Oh, one other thing here - if there is routing within your component which would allow the two cards to be interconnected then that's a bit different and the cards should probably be combined into one.