summaryrefslogtreecommitdiff
path: root/sound/soc/sof/intel/icl.c
diff options
context:
space:
mode:
authorMark Brown <broonie@kernel.org>2022-09-23 22:46:25 +0300
committerMark Brown <broonie@kernel.org>2022-09-23 22:46:25 +0300
commite9b0ff9336850863e608c2df0dde512adecb4a20 (patch)
tree33575a8be2e9c5db231c7df63a83beb65b6d8775 /sound/soc/sof/intel/icl.c
parent5b887b4d1e21fcc16bbcf64ac1cac1ab9d0acca2 (diff)
parent4245fdba89b82befee0d963a85f7494c70432ee9 (diff)
downloadlinux-e9b0ff9336850863e608c2df0dde512adecb4a20.tar.xz
ASoC: SOF: ipc4/Intel: Improve and enable IPC error dump
Merge series from Peter Ujfalusi <peter.ujfalusi@linux.intel.com>: On Intel platforms the registers for DSP communications are used differently, the IPC dump information is not correct since important registers are not printed and existing ones are used a bit differently for IPC4. As a last step, enable the IPC timeout 'handling' and allow the printout of the now usefull IPC dump.
Diffstat (limited to 'sound/soc/sof/intel/icl.c')
-rw-r--r--sound/soc/sof/intel/icl.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/sound/soc/sof/intel/icl.c b/sound/soc/sof/intel/icl.c
index f099a018ffb0..6d5877108a3d 100644
--- a/sound/soc/sof/intel/icl.c
+++ b/sound/soc/sof/intel/icl.c
@@ -113,6 +113,9 @@ int sof_icl_ops_init(struct snd_sof_dev *sdev)
/* ipc */
sof_icl_ops.send_msg = cnl_ipc_send_msg;
+
+ /* debug */
+ sof_icl_ops.ipc_dump = cnl_ipc_dump;
}
if (sdev->pdata->ipc_type == SOF_INTEL_IPC4) {
@@ -132,12 +135,14 @@ int sof_icl_ops_init(struct snd_sof_dev *sdev)
/* ipc */
sof_icl_ops.send_msg = cnl_ipc4_send_msg;
+
+ /* debug */
+ sof_icl_ops.ipc_dump = cnl_ipc4_dump;
}
/* debug */
sof_icl_ops.debug_map = icl_dsp_debugfs;
sof_icl_ops.debug_map_count = ARRAY_SIZE(icl_dsp_debugfs);
- sof_icl_ops.ipc_dump = cnl_ipc_dump;
/* pre/post fw run */
sof_icl_ops.post_fw_run = icl_dsp_post_fw_run;