From: Mengdong Lin <mengdong.lin@xxxxxxxxxxxxxxx> This is still a preparation for topology to create PCM at dynamically. First two patches are code refactoring. The 3rd patch implements the DAI links into a list, so that the number of links can add/shrink by topology at runtime. The use scenario may be like this: - When instantiating the soc card, probing a component with topology can bring new DAI links. The ASoC will probe the new links (in later patches). - When unregistering the soc card, removing this component will also remove DAI links created by it. For backward compatiblity, the machine driver can still define a static link array. And the ASoC core will add these links into the list when instantiating the soc card. Mengdong Lin (3): ASoC: Define soc_init_dai_link() to wrap link intialization. ASoC: Change 2nd argument of soc_bind_dai_link() to DAI link pointer ASoC: Implement DAI links in a list & define API to add/remove a link include/sound/soc.h | 15 ++- sound/soc/soc-core.c | 251 +++++++++++++++++++++++++++++++++------------------ 2 files changed, 177 insertions(+), 89 deletions(-) -- 2.5.0 _______________________________________________ Alsa-devel mailing list Alsa-devel@xxxxxxxxxxxxxxxx http://mailman.alsa-project.org/mailman/listinfo/alsa-devel