ASoC: Implement DAI links in a list & define API to add/remove a link
authorMengdong Lin <mengdong.lin@linux.intel.com>
Wed, 2 Dec 2015 06:11:22 +0000 (14:11 +0800)
committerMark Brown <broonie@kernel.org>
Tue, 8 Dec 2015 18:05:09 +0000 (18:05 +0000)
commitf8f80361d07d503093940097e967a7edaa134ca2
tree54806e1eff53dc701d9258ee204d04c67bd31177
parent6f2f1ff0de83ad69f5a823ae77d1e0f77cc75d45
ASoC: Implement DAI links in a list & define API to add/remove a link

Implement a dai link list for the soc card.

Add APIs to add/remove a DAI links dynamically, e.g. by topology.

And a dobj is embedded into the struct snd_soc_dai_link. Topology can
use the dobj to find the links created by it and remove them when the
topology component is unloaded.

The predefined DAI links are reserved to keep backward compatibility.
And they will also be added to the list.

Signed-off-by: Mengdong Lin <mengdong.lin@linux.intel.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c