Skip to content

Commit fe54fd5

Browse files
rfvirgilbroonie
authored andcommitted
firmware: cs_dsp: Add KUnit testing of control read/write
Add KUnit test cases for control read/write. Tests cases cover general reading and writing of controls: 1) Read/write at offset position in control. 2) Read/write of various lengths less than length of the control. 3) Rejecting illegal arguments. The test cases are run for ADSP2 with 16-bit registers, ADSP2 with 32-bit registers and Halo Core with 32-bit registers. The ADSP2 cases are further divided into runs for V1 and V2 format WMFW files, because there are differences in how V1 and V2 defines controls. The obsolete V0 format does not have controls, so no testing of that format is needed. Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com> Link: https://patch.msgid.link/20241212143725.1381013-10-rf@opensource.cirrus.com Signed-off-by: Mark Brown <broonie@kernel.org>
1 parent 9b33a4f commit fe54fd5

2 files changed

Lines changed: 2670 additions & 0 deletions

File tree

drivers/firmware/cirrus/test/Makefile

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ cs_dsp_test-objs := \
1212
cs_dsp_test_bin.o \
1313
cs_dsp_test_control_parse.o \
1414
cs_dsp_test_control_cache.o \
15+
cs_dsp_test_control_rw.o \
1516
cs_dsp_test_wmfw.o \
1617
cs_dsp_tests.o
1718

0 commit comments

Comments
 (0)