[PATCH 00/10] ASoC: wm_adsp: Some improvements to firmware file search
From: Richard Fitzgerald
Date: Tue Mar 10 2026 - 10:51:32 EST
This series makes some improvements to the code that searches for firmware
files.
Patch 1 is a trivial patch to remove an unused function argument, before
adding any new code that uses this API.
Patches 2..4 add KUnit testing to prove that the subsequent changes don't
break anything.
The remaining patches remove duplicated code and clean up some of the
implementation.
Richard Fitzgerald (10):
ASoC: wm_adsp: Remove unused argument to
wm_adsp_release_firmware_files()
ASoC: wm_adsp: Add KUnit redirection stubs for firmware file search
ASoC: wm_adsp: Export function for KUnit test to get firmware
filenames
ASoC: wm_adsp: Add kunit test for firmware file search
ASoC: wm_adsp: Remove duplicated code to find firmware file
ASoC: wm_adsp: Use consistent error checks in
wm_adsp_request_firmware_files()
ASoC: wm_adsp: Convert '/' to '-' when normalizing firmware filenames
ASoC: wm_adsp: Add KUnit test cases for '/' in firmware filenames
ASoC: wm_adsp: Use a struct to pass around firmware struct and
filename
ASoC: wm_adsp: Combine some similar code in firmware file search
sound/soc/codecs/Kconfig | 14 +-
sound/soc/codecs/Makefile | 2 +
sound/soc/codecs/wm_adsp.c | 234 +++--
sound/soc/codecs/wm_adsp.h | 19 +
sound/soc/codecs/wm_adsp_fw_find_test.c | 1221 +++++++++++++++++++++++
5 files changed, 1383 insertions(+), 107 deletions(-)
create mode 100644 sound/soc/codecs/wm_adsp_fw_find_test.c
--
2.47.3