Commit a5e6ea01 authored by Wu Zhou's avatar Wu Zhou Committed by Mark Brown

ASoC: Intel: avs: Disable DSP before loading basefw

When audio controller is passed-through to the guest machine in
virtualized environment, the basefw load will fail the next time guest
OS reboots. Disable the DSP main core before loading the base firmware
to sanitize the environment.
Signed-off-by: default avatarWu Zhou <wu.zhou@intel.com>
Signed-off-by: default avatarLibin Yang <libin.yang@intel.com>
Signed-off-by: default avatarCezary Rojewski <cezary.rojewski@intel.com>
Signed-off-by: default avatarAmadeusz Sławiński <amadeuszx.slawinski@linux.intel.com>
Link: https://lore.kernel.org/r/20230929112436.787058-6-amadeuszx.slawinski@linux.intel.comSigned-off-by: default avatarMark Brown <broonie@kernel.org>
parent 0a5fb3cc
...@@ -662,6 +662,10 @@ int avs_dsp_first_boot_firmware(struct avs_dev *adev) ...@@ -662,6 +662,10 @@ int avs_dsp_first_boot_firmware(struct avs_dev *adev)
} }
} }
ret = avs_dsp_core_disable(adev, AVS_MAIN_CORE_MASK);
if (ret < 0)
return ret;
ret = avs_dsp_boot_firmware(adev, true); ret = avs_dsp_boot_firmware(adev, true);
if (ret < 0) { if (ret < 0) {
dev_err(adev->dev, "firmware boot failed: %d\n", ret); dev_err(adev->dev, "firmware boot failed: %d\n", ret);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment