Skip to content

ASoC: cs35l56: More KUnit tests for speaker ID

Richard Fitzgerald linux-kselftest linux-sound lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 1 replyIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4ASoC: cs35l56: KUnit tests for setting dsp.system_namesound/soc/codecs/cs35l56-test.c sound/soc/codecs/cs35l56.c sound/soc/codecs/cs35l56.h+83 -10 replies
2/4ASoC: cs35l56: Some KUnit testing of cs35l56_get_speaker_id()sound/soc/codecs/cs-amp-lib.c sound/soc/codecs/cs35l56-shared-test.c+45 -00 replies
3/4ASoC: cs35l56: KUnit tests for reading speaker ID from host GPIOssound/soc/codecs/cs35l56-shared-test.c+197 -00 replies
4/4kunit: config: all_tests: Select CONFIG_GPIOLIBtools/testing/kunit/configs/all_tests.config+2 -00 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

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

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(-)
Signature · 1 line
2.47.3