ASoC: soc-component: Add new snd_soc_component_get_kcontrol() helpers
authorCharles Keepax <ckeepax@opensource.cirrus.com>
Fri, 2 Aug 2024 10:57:32 +0000 (11:57 +0100)
committerMark Brown <broonie@kernel.org>
Fri, 2 Aug 2024 13:04:39 +0000 (14:04 +0100)
commitc8a132e2e032b00828d51141ab34f9aeb24f44ae
tree4a5460bfaabe5c1f70c3d79798c99dadb33f9f46
parentbecfa08bfefa2cbb22c84d9e583e81387f2f3bf2
ASoC: soc-component: Add new snd_soc_component_get_kcontrol() helpers

Add new helper functions snd_soc_component_get_kcontrol() and
snd_soc_component_get_kcontrol_locked() that returns a kcontrol
by name, but will factor in the components name_prefix, to handle
situations where multiple components are present with the same
controls.

Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://patch.msgid.link/20240802105734.2309788-3-ckeepax@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
include/sound/soc-component.h
sound/soc/soc-component.c