The control list may contain shutdown controls for firmwares that are
not currently active, attempting to write this will at best fail. To
avoid this issue we skip any control that is not active.
Fixes: commit f4f0c4c60c39 ("ASoC: wm_adsp: Signal firmware shutdown
through event control")
Signed-off-by: Charles Keepax <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
if (ctl->type != WMFW_CTL_TYPE_HOSTEVENT)
continue;
+ if (!ctl->enabled)
+ continue;
+
ret = wm_coeff_write_acked_control(ctl, event);
if (ret)
adsp_warn(dsp,