]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: core: Don't defer probe on optional, NULL components
authorMatthias Reichl <hias@horus.com>
Tue, 15 Jan 2019 16:51:07 +0000 (17:51 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Jan 2019 18:57:17 +0000 (18:57 +0000)
commit14cc6b9561f7566dd7b1ed1e4319d75a43052bde
tree2fb76f3eb49e782edd66d2eb3e4f02ba99aba6e0
parente6d8df9542541a7b38a33142da8ff95c2cd528a7
ASoC: core: Don't defer probe on optional, NULL components

cpu and platform are optional components in DAI links. For example
codec-codec links usually have no platform set.

Call snd_soc_find_component only if the name or of_node of
a cpu or platform is set. Otherwise it will return NULL and
soc_init_dai_link bails out immediately with -EPROBE_DEFER,
meaning registering a card with NULL cpu or platform in DAI links
can never succeed.

Fixes: 0b9edc711fcb ("ASoC: soc-core: defer card probe until all component is added to list")
Signed-off-by: Matthias Reichl <hias@horus.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/soc-core.c