Cristian Ciocaltea 35c8ae25c4
ASoC: wm_adsp: Handle optional legacy support
The tracing capabilities for the speaker protection fw enabled via
commit c55b3e46cb99 ("ASoC: wm_adsp: Add trace caps to speaker
protection FW") are not be available on all platforms, such as the
Valve's Steam Deck which is based on the Halo Core DSP.

As a consequence, whenever the firmware is loaded, a rather misleading
'Failed to parse legacy: -19' error message is written to the kernel
ring buffer:

[  288.977412] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: Firmware version: 3
[  288.978002] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: cs35l41-dsp1-spk-prot.wmfw: Fri 02 Apr 2021 21:03:50 W. Europe Daylight Time
[  289.094065] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: Firmware: 400a4 vendor: 0x2 v0.33.0, 2 algorithms
[  289.095073] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: 0: ID cd v29.53.0 XM@94 YM@e
[  289.095665] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: 1: ID f20b v0.0.1 XM@170 YM@0
[  289.096275] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: Protection: C:\Users\ocanavan\Desktop\cirrusTune_july2021.bin
[  291.172383] steamdeck kernel: cs35l41 spi-VLV1776:01: DSP1: Failed to parse legacy: -19

Update wm_adsp_buffer_init() to print a more descriptive info message
when wm_adsp_buffer_parse_legacy() returns -ENODEV.

Fixes: c55b3e46cb99 ("ASoC: wm_adsp: Add trace caps to speaker protection FW")
Signed-off-by: Cristian Ciocaltea <cristian.ciocaltea@collabora.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link: https://lore.kernel.org/r/20220825220530.1205141-1-cristian.ciocaltea@collabora.com
Signed-off-by: Mark Brown <broonie@kernel.org>
2022-09-05 13:09:39 +01:00
..
2021-04-20 17:25:51 +01:00
2022-05-23 16:03:04 +02:00
2022-06-27 18:27:03 +01:00
2022-07-11 15:51:01 +01:00
2021-03-31 18:00:38 +01:00
2022-08-16 13:08:06 +01:00
2022-06-06 12:33:10 +01:00
2022-08-16 13:08:06 +01:00
2022-07-13 13:48:56 +01:00
2020-05-07 13:18:04 +01:00
2019-07-26 13:10:09 +01:00
2022-01-28 15:59:20 +00:00
2021-12-06 10:04:05 +01:00
2022-07-08 11:52:42 +01:00
2022-07-08 11:52:42 +01:00
2021-12-06 10:04:05 +01:00
2022-08-15 01:20:01 +01:00
2020-07-20 15:34:29 +01:00
2022-07-11 15:51:01 +01:00
2020-10-02 21:05:29 +01:00
2022-07-11 15:51:01 +01:00