diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-09-09 14:43:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-09 18:48:47 +0100 |
commit | a5d0147ac9f8ea6c08d00b28f0468c9cb3fdfde8 (patch) | |
tree | 2a286bd399774d1dec49ee817cf8d2b7c88efc8a /sound/soc/sof/ipc4.c | |
parent | b59f1532e0b17f22965e327f86d04292f496ccaf (diff) | |
download | linux-stable-a5d0147ac9f8ea6c08d00b28f0468c9cb3fdfde8.tar.gz linux-stable-a5d0147ac9f8ea6c08d00b28f0468c9cb3fdfde8.tar.bz2 linux-stable-a5d0147ac9f8ea6c08d00b28f0468c9cb3fdfde8.zip |
ASoC: SOF: ipc4: Configure the debug box offset
The debug window for IPC4 compatible firmware is always window #2,
set the debug_box.offset accordingly.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220909114332.31393-5-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc4.c')
-rw-r--r-- | sound/soc/sof/ipc4.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/sof/ipc4.c b/sound/soc/sof/ipc4.c index 58aa054663bf..4f7ec18ae7fa 100644 --- a/sound/soc/sof/ipc4.c +++ b/sound/soc/sof/ipc4.c @@ -545,10 +545,14 @@ static int ipc4_fw_ready(struct snd_sof_dev *sdev, struct sof_ipc4_msg *ipc4_msg sdev->host_box.offset = outbox_offset; sdev->host_box.size = outbox_size; + sdev->debug_box.offset = snd_sof_dsp_get_window_offset(sdev, + SOF_IPC4_DEBUG_WINDOW_IDX); + dev_dbg(sdev->dev, "mailbox upstream 0x%x - size 0x%x\n", inbox_offset, inbox_size); dev_dbg(sdev->dev, "mailbox downstream 0x%x - size 0x%x\n", outbox_offset, outbox_size); + dev_dbg(sdev->dev, "debug box 0x%x\n", sdev->debug_box.offset); return sof_ipc4_init_msg_memory(sdev); } |