ASoC: soc-core: support dai_link with platforms_num != 1
authorJerome Brunet <jbrunet@baylibre.com>
Thu, 27 Jun 2019 12:13:50 +0000 (14:13 +0200)
committerMark Brown <broonie@kernel.org>
Fri, 28 Jun 2019 12:41:19 +0000 (13:41 +0100)
commit34614739988ad60c3493da66dd856002ee93edf9
tree0fe6f846ec5dd3083e3d10d7de55c933adba267a
parentaf18b13fedae4637b439d1265038b30929ca5a4c
ASoC: soc-core: support dai_link with platforms_num != 1

Add support platforms_num != 1 in dai_link. Initially, the main purpose of
this change was to make the platform optional in the dai_link, instead of
inserting the dummy platform driver.

This particular case had just been solved by Kuninori Morimoto with
commit 1d7689892878 ("ASoC: soc-core: allow no Platform on dai_link").

However, this change may still be useful for those who need multiple
platform components on a single dai_link (it solves one of the FIXME
note in soc-core)

Acked-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Jerome Brunet <jbrunet@baylibre.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c