]> www.infradead.org Git - users/jedix/linux-maple.git/commit
firmware: cs_dsp: Add mock bin file generator for KUnit testing
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Thu, 12 Dec 2024 14:37:17 +0000 (14:37 +0000)
committerMark Brown <broonie@kernel.org>
Fri, 13 Dec 2024 13:14:40 +0000 (13:14 +0000)
commit7c052c6615297ff32032105130cd5f02059f7ae4
tree5ee961de5c6806a6ffe1497f2da666b8e9f61f61
parent5cf1b7b471803f7cc654a29ee16cb085ad69c097
firmware: cs_dsp: Add mock bin file generator for KUnit testing

Add a mock firmware file that emulates what the firmware build tools
would normally create. This will be used by KUnit tests to generate a
test bin file.

The data payload in a bin is an opaque blob, so the mock bin only needs
to generate the appropriate file header and description block for each
payload blob.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20241212143725.1381013-5-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/firmware/cirrus/test/Makefile
drivers/firmware/cirrus/test/cs_dsp_mock_bin.c [new file with mode: 0644]
include/linux/firmware/cirrus/cs_dsp_test_utils.h