ASoC: cs-amp-lib: Check for no firmware controls when writing calibration
authorSimon Trimmer <simont@opensource.cirrus.com>
Mon, 25 Mar 2024 14:44:50 +0000 (14:44 +0000)
committerMark Brown <broonie@kernel.org>
Mon, 25 Mar 2024 16:37:09 +0000 (16:37 +0000)
commite2d7ad717a6b0880843dbc60855a5b97ad0395f8
tree40da443b3d49d7ee46807391cf49875788cb95e7
parentc61115b37ff964d63191dbf4a058f481daabdf57
ASoC: cs-amp-lib: Check for no firmware controls when writing calibration

When a wmfw file has not been loaded the firmware control descriptions
necessary to write a stored calibration are not present. In this case
print a more descriptive error message.

The message is logged at info level because it is not fatal, and does
not necessarily imply that anything is broken.

Signed-off-by: Simon Trimmer <simont@opensource.cirrus.com>
Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Link: https://msgid.link/r/20240325144450.293630-1-rf@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs-amp-lib.c