Skip to content

Commit

Permalink
ASoC: SOF: Intel: check fw boot config for library reload
Browse files Browse the repository at this point in the history
If fw supports both IMR booting and D3 context save, library reload
can be skipped, or library should be reloaded.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Oct 18, 2023
1 parent b06fba8 commit 3e5f75e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions sound/soc/sof/intel/hda-loader.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,8 +525,8 @@ int hda_dsp_ipc4_load_library(struct snd_sof_dev *sdev,
struct snd_dma_buffer dmab;
int ret, ret1;

/* IMR booting will restore the libraries as well, skip the loading */
if (reload && hda->booted_from_imr)
/* if IMR booting and D3 context save are supported, skip the loading */
if (reload && hda->booted_from_imr && sdev->fw_ready.flags & SOF_IPC_INFO_D3_PERSISTENT)
return 0;

/* the fw_lib has been verified during loading, we can trust the validity here */
Expand Down

0 comments on commit 3e5f75e

Please sign in to comment.