ASoC: simple-card: add comment to indicate don't remove platforms
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 22 Mar 2023 01:12:24 +0000 (01:12 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 22 Mar 2023 13:17:38 +0000 (13:17 +0000)
commitdcf084247e376b35c139c922d30917f4ff716a4c
treebaf015e8ffe4c9236a45c0fcb752dda2141e0eb4
parent3e1a334ad5b6e1aee25fd7f09400000f9b7b1f82
ASoC: simple-card: add comment to indicate don't remove platforms

Basically CPU and Platform are different Component, but if CPU is using
soc-generic-dmaengine-pcm, same dev will be shared between CPU and
Platform, and Simple Card had been supporting it.

When we focus to clean up Simple Card driver, we tend to remove platforms
if no Platform was selected, but it is wrong because of above reasons.

This patch adds comment why we shouldn't remove platforms.

In case of CPU is not using soc-generic-dmaengine-pcm, CPU and Platform
will be duplicated, but it will be ignored by snd_soc_rtd_add_component().

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Link: https://lore.kernel.org/r/875yattwqv.wl-kuninori.morimoto.gx@renesas.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/generic/audio-graph-card.c
sound/soc/generic/audio-graph-card2.c
sound/soc/generic/simple-card-utils.c
sound/soc/generic/simple-card.c