]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: simple-card-utils: care no Platform for DPCM
authorKuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Wed, 10 Jul 2019 08:01:12 +0000 (17:01 +0900)
committerMark Brown <broonie@kernel.org>
Wed, 10 Jul 2019 15:25:45 +0000 (16:25 +0100)
commita52521cd3c75b4edb96602e4d2c57ef05d3c58f0
tree5c97f474dd239c6e2eb94aaf1534063588b7adde
parentbf6c04983cfdc3814da84047b5c54a2d45e3ae8b
ASoC: simple-card-utils: care no Platform for DPCM

commit f696f3056b84a ("ASoC: soc-core: support dai_link with
platforms_num != 1") supports multi Platform, and
commit 7ddf852d00453 ("ASoC: simple-card-utils: consider CPU-Platform
possibility") removed no Platform from simple-card.

Multi Platform is now checking both Platform name/of_node are NULL case.
But in normal case, DPCM be doesn't have Platform.

asoc_simple_canonicalize_platform() try to use CPU of_node
to Platform (This is needed for DMAEngine platform case),
but it still might be NULL at DPCM be.

This patch try to use no Platform after that if Platform of_node
is still NULL. It can't probe without this patch.

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