diff options
| author | Cezary Rojewski <cezary.rojewski@intel.com> | 2026-10-07 15:33:47 +0200 |
|---|---|---|
| committer | Mark Brown <broonie@kernel.org> | 2026-10-12 23:55:48 +0100 |
| commit | 0f2bec6921f0971c2fc2f8bb5a93229b6546dded (patch) | |
| tree | a2a4118e05cbdf34efc6831bd2252f309d4bfd3c /scripts/Makefile.thinlto | |
| parent | 995b96380ba5d98131acc162608da3538e1395d8 (diff) | |
| download | linux-0f2bec6921f0971c2fc2f8bb5a93229b6546dded.tar.gz linux-0f2bec6921f0971c2fc2f8bb5a93229b6546dded.zip | |
ASoC: core: Add component constructor
There is a gap between snd_soc_component_alloc() and
snd_soc_register_component(). A driver that obtains a component object
through snd_soc_component_alloc() receives an object in uninitialized
state. soc_component_initialize() is the function responsible for
bringing it into a sane one but it is not accessible by the framework
users.
The framework shall prevent manipulation of uninitialized components.
Introduce snd_soc_component_new() which acts as a constructor: allocates
and initializes the component object before returning it to the caller.
Cc: Kuninori Morimoto <kuninori.morimoto.gx@renesas.com>
Signed-off-by: Cezary Rojewski <cezary.rojewski@intel.com>
Link: https://patch.msgid.link/20261007133353.455185-2-cezary.rojewski@intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'scripts/Makefile.thinlto')
0 files changed, 0 insertions, 0 deletions
