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>
This commit is contained in:
Richard Fitzgerald 2026-01-21 13:22:42 +00:00 • committed by Mark Brown
commit 3f086a4f27
No known key found for this signature in database
GPG key ID: 24D68B725D5487D0
2 changed files with 13 additions and 11 deletions