]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wm_adsp: Add KUnit redirection stubs for firmware file search
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 10 Mar 2026 14:18:09 +0000 (14:18 +0000)
committerMark Brown <broonie@kernel.org>
Tue, 10 Mar 2026 14:52:49 +0000 (14:52 +0000)
commit70057cfe492d600c2b83598e8b8b64780b2ca147
treee1b3cf4ba55ffb14eabb1fef78a5657d2d3887ae
parent1eadb7791ee5699ca58920ef705ce0934c814ece
ASoC: wm_adsp: Add KUnit redirection stubs for firmware file search

Make some of the firmware file search functions redirectable for KUnit
testing.

- The call to firmware_request_nowarn() is factored out into a wrapper
  function so that it can be redirected.

- wm_adsp_request_firmware_files() and wm_adsp_release_firmware_files()
  are made visible and exported if KUNIT is enabled.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://patch.msgid.link/20260310141817.1871794-3-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h