ASoC: wm_adsp: Support powering-up DSP without trying to load firmware
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Tue, 15 Aug 2023 12:48:25 +0000 (13:48 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 15 Aug 2023 12:56:46 +0000 (13:56 +0100)
commit62ddad4238a0250aa9cedade127c39aac9d26d45
treecec6330675945228c8b659664c402dd8f9b9d954
parent62cc82e6486b9b66b340bbf5fb38b0171fb56a7f
ASoC: wm_adsp: Support powering-up DSP without trying to load firmware

Add a flag to wm_adsp_power_up() that indicates whether it should attempt
to find and load firmware files.

This is to support DSPs that have built-in firmware that may already have
been patched (for example, by the BIOS). In that case the patch must not
be overwritten because that could corrupt the running firmware.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20230815124826.5447-2-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l56.c
sound/soc/codecs/wm_adsp.c
sound/soc/codecs/wm_adsp.h