firmware: cirrus: Add KUnit tests for cs_dsp
authorMark Brown <broonie@kernel.org>
Fri, 13 Dec 2024 17:33:05 +0000 (17:33 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 13 Dec 2024 17:33:05 +0000 (17:33 +0000)
commit94c545aa535d7f5dcf54ad8e648f22943bbfcb32
tree59351ec33ec60f537facbb55c36ce0d829c4fe2f
parent9b94f41449939537151dfd91e922b2e897054b94
parent75a4a6ef615e2f4e9458051641f185498273ce02
firmware: cirrus: Add KUnit tests for cs_dsp

Merge series from Richard Fitzgerald <rf@opensource.cirrus.com>:

This series adds KUnit tests for the cs_dsp module.

Most of the functionality in cs_dsp is for downloading firmware to
DSP memory and interacting with "control" words defined in that
memory. This doesn't require any emulation of running firmware,
because it is only reading and writing registers. So the testing can
be done using a dummy regmap. The way this is used to perform testing
is described in more detail in the commit message for each test.

ADSP1 is not tested because this was only used by the WM2200 codec,
a long-obsolete part that was discontinued in 2015.