]> git.ipfire.org Git - thirdparty/linux.git/commit
ASoC: core: Move all users to deferrable card binding
authorCezary Rojewski <cezary.rojewski@intel.com>
Thu, 30 Apr 2026 14:07:52 +0000 (16:07 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 11 May 2026 01:06:10 +0000 (10:06 +0900)
commit42d99857d6f08a40a8bde7b9e68d330f18b159a0
tree614c79a9b0ac2e3bdabb936e9d2175f2bc37137c
parent56ba969925acee25954bac7efe2ab41f18d8c543
ASoC: core: Move all users to deferrable card binding

Commit a3375522bb5e2 ("ASoC: core: Complete support for card rebinding")
completed the feature and at the same time divided ASoC users into two
groups:

1) cards that fail to enumerate the moment one of the components is
   not available
2) cards that succeed to enumerate even if some of their components
   become available late

Given the component-based nature of ASoC, approach 2) is preferred and
can be used by all ASoC users.  By dropping 1) the card binding code can
also be simplified.

Flatten code that is currently conditional based on ->devres_dev and
convert snd_soc_rebind_card() to call_soc_bind_card().  The latter is a
selector between managed and unmanaged card-binding behaviour to keep
non-devm users happy.

With rebinding being the default, devm_snd_soc_register_card() takes
form of its deferrable friend - all the devm job is already done by
devm_snd_soc_bind_card().

Suggested-by: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20260430140752.766130-1-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc.h
sound/soc/soc-core.c
sound/soc/soc-devres.c