]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: sdw_utils: return -EPROBE_DEFER if components are not registered yet
authorBard Liao <yung-chuan.liao@linux.intel.com>
Fri, 29 May 2026 01:42:59 +0000 (09:42 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 29 May 2026 14:41:51 +0000 (15:41 +0100)
commit98d08b2e0e92ea39ac6743dcfdda1af676514c4b
tree4aa554359e41d84c60b240e81227f9bb3f5a9b38
parent214206d8a332593814b4ab0ce88bf2cf6da5af35
ASoC: sdw_utils: return -EPROBE_DEFER if components are not registered yet

commit 42d99857d6f0 ("ASoC: core: Move all users to deferrable card binding")
converted the -EPROBE_DEFER return value of snd_soc_bind_card() to 0
which results in the machine driver probe return 0 and will not be
called again when any component is not yet registered.
We get the right component name from the registered components
and use it in the dai links. It will lead to bind fail if the default
component name is used. Return -EPROBE_DEFER to allow the machine driver
probe again after the components are registered.

Suggested-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20260529014259.2528048-1-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sdw_utils/soc_sdw_utils.c