On Thu, 19 May 2022 19:47:48 +0200, Vitaly Rodionov wrote:
From: Stefan Binding sbinding@opensource.cirrus.com
This is required to support CS35L41 calibration.
By default, speaker protection firmware will be loaded, if available. However, different firmware is required to run the calibration sequence, so it is necessary to add support to be able to unload, switch and reload firmware.
This patch adds 2 ALSA Controls for each amp: "DSP1 Firmware Load" "DSP1 Firmware Type"
"DSP1 Firmware Load" can be used to unload and load the firmware. "DSP1 Firmware Type" can be used to switch the target firmware to be loaded by "DSP1 Firmware Load"
Hmm. This essentially means that you can execute the firmware load and the whole DSP init / removal just by changing this control element value, right? The end-effect is too strong, IMO. The control element is available to all users who can access the sound device, and any malicious program may change it randomly thousands times per second. That is, it can easily lead to some weird issue, I'm afraid.
thanks,
Takashi