]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: cs-amp-lib: Add a Kconfig symbol for enabling test hooks
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Wed, 21 Jan 2026 13:22:42 +0000 (13:22 +0000)
committerMark Brown <broonie@kernel.org>
Wed, 21 Jan 2026 13:41:23 +0000 (13:41 +0000)
commit3f086a4f277af799467af6c74902000461e60a33
treed97b394412a02cf9c854a812a1d77a8c1083b49a
parentd70fa6b569a95e71cc25b86ac3cc221bea541f53
ASoC: cs-amp-lib: Add a Kconfig symbol for enabling test hooks

Add Kconfig symbol CONFIG_SND_SOC_CS_AMP_LIB_TEST_HOOKS to enable
calling into functions that would normally abort because of missing
EFI functionality. Before this the code paths were only enabled if
the KUnit test for cs-amp-lib was enabled.

This change allows KUnit tests for clients of cs-amp-lib to install
redirection hooks in cs-amp-lib.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260121132243.1256019-5-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/Kconfig
sound/soc/codecs/cs-amp-lib.c