[PATCH 0/4] ASoC: cs35l56: More KUnit tests for speaker ID

From: Richard Fitzgerald

Date: Wed Mar 04 2026 - 11:41:36 EST


The first 3 patches in this series add some more KUnit testing for
fetching speaker ID and combining it with the system name to create
part of the qualifier for a firmware filename.

Patch #4 enables GPIOLIB in KUnit 'alltests' builds. This can be taken
separately from the first 3 patches.

The GPIO tests will skip if GPIOLIB is not enabled, but obviously it
would be ideal for 'kunit.py --alltests' runs to include these new
test cases.

Richard Fitzgerald (4):
ASoC: cs35l56: KUnit tests for setting dsp.system_name
ASoC: cs35l56: Some KUnit testing of cs35l56_get_speaker_id()
ASoC: cs35l56: KUnit tests for reading speaker ID from host GPIOs
kunit: config: all_tests: Select CONFIG_GPIOLIB

sound/soc/codecs/cs-amp-lib.c | 2 +
sound/soc/codecs/cs35l56-shared-test.c | 240 +++++++++++++++++++
sound/soc/codecs/cs35l56-test.c | 80 +++++++
sound/soc/codecs/cs35l56.c | 3 +-
sound/soc/codecs/cs35l56.h | 1 +
tools/testing/kunit/configs/all_tests.config | 2 +
6 files changed, 327 insertions(+), 1 deletion(-)

--
2.47.3