On Fri, 29 Oct 2010 14:22:49 -0700 Mark Brown broonie@opensource.wolfsonmicro.com wrote:
On Fri, Oct 29, 2010 at 03:02:59PM +0300, Jarkko Nikula wrote:
Thus far the struct snd_soc_dai_link is used to tie together platform, codec and cpu dai drivers in a machine driver and all of these devices has been required for a link.
My main thought with this now that I see the change is that it'd be easier and probably clearer to add an explicit list of devices rather than to repurpose the DAI links. This will probably be simpler since we can avoid things like having to work out if we've seen and initialised a device before when it has multiple DAIs involved.
My concern was mostly that we end up having somewhat similar struct than snd_soc_dai_link and adding pointer to such table in snd_soc_card. But that's not necessary reduncandy at all if it makes cleanier move to other cases like codec-codec etc. I'll experiment that in next version.