Skip to content

Commit

Permalink
ASoC: SOF: save fw_ready flag
Browse files Browse the repository at this point in the history
Kernel uses fw_ready flag to get fw boot config.

Signed-off-by: Rander Wang <[email protected]>
  • Loading branch information
RanderWang committed Oct 19, 2023
1 parent 180286d commit 45ee36e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions sound/soc/sof/ipc4-priv.h
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@
#define SOF_IPC4_OUTBOX_WINDOW_IDX 1
#define SOF_IPC4_DEBUG_WINDOW_IDX 2

#define SOF_IPC4_FW_CONTEXT_SAVE 1

enum sof_ipc4_mtrace_type {
SOF_IPC4_MTRACE_NOT_AVAILABLE = 0,
SOF_IPC4_MTRACE_INTEL_CAVS_1_5,
Expand Down
2 changes: 2 additions & 0 deletions sound/soc/sof/ipc4.c
Original file line number Diff line number Diff line change
Expand Up @@ -599,6 +599,8 @@ static int ipc4_fw_ready(struct snd_sof_dev *sdev, struct sof_ipc4_msg *ipc4_msg
sdev->debug_box.offset = snd_sof_dsp_get_window_offset(sdev,
SOF_IPC4_DEBUG_WINDOW_IDX);

sdev->fw_ready.flags = ipc4_msg->extension;

sof_ipc4_create_exception_debugfs_node(sdev);

dev_dbg(sdev->dev, "mailbox upstream 0x%x - size 0x%x\n",
Expand Down

0 comments on commit 45ee36e

Please sign in to comment.