Skip to content

Commit

Permalink
ASoC: SOF: Intel: disable IMR boot when resuming from ACPI S4 and S5 …
Browse files Browse the repository at this point in the history
…states

The IMR was assumed to be preserved when uspending to S4 and S5
states, but community reports show boot issues. Make sure regular boot
with firmware download is used for S4 and S5.

BugLink: thesofproject/sof#5892
Signed-off-by: Pierre-Louis Bossart <[email protected]>
  • Loading branch information
plbossart committed Jun 7, 2022
1 parent 1e84fb7 commit 43c585b
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion sound/soc/sof/intel/hda-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -395,7 +395,8 @@ int hda_dsp_cl_boot_firmware(struct snd_sof_dev *sdev)
struct snd_dma_buffer dmab;
int ret, ret1, i;

if (hda->imrboot_supported && !sdev->first_boot) {
if (sdev->system_suspend_target < SOF_SUSPEND_S4 &&
hda->imrboot_supported && !sdev->first_boot) {
dev_dbg(sdev->dev, "IMR restore supported, booting from IMR directly\n");
hda->boot_iteration = 0;
ret = hda_dsp_boot_imr(sdev);
Expand Down

0 comments on commit 43c585b

Please sign in to comment.