diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-09-23 16:36:15 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-09-23 14:53:21 +0100 |
commit | 01fb69d09afb896579e00c3dbc3c1aa74613dd86 (patch) | |
tree | c9839a0cfd293f314eada388097666b0817faa35 /sound | |
parent | d01784ee680c558938baf6c4f184bee2bc612798 (diff) | |
download | linux-stable-01fb69d09afb896579e00c3dbc3c1aa74613dd86.tar.gz linux-stable-01fb69d09afb896579e00c3dbc3c1aa74613dd86.tar.bz2 linux-stable-01fb69d09afb896579e00c3dbc3c1aa74613dd86.zip |
ASoC: SOF: Intel: hda: Only dump firmware registers for IPC3
The firmware register dump is IPC3 specific, it is not available for other
IPC versions.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Link: https://lore.kernel.org/r/20220923133616.26267-6-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/sof/intel/hda.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index ca648d2a9da7..e00062f3b21c 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -598,7 +598,8 @@ void hda_dsp_dump(struct snd_sof_dev *sdev, u32 flags) /* print ROM/FW status */ hda_dsp_get_state(sdev, level); - if (flags & SOF_DBG_DUMP_REGS) { + /* The firmware register dump only available with IPC3 */ + if (flags & SOF_DBG_DUMP_REGS && sdev->pdata->ipc_type == SOF_IPC) { u32 status = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_SRAM_REG_FW_STATUS); u32 panic = snd_sof_dsp_read(sdev, HDA_DSP_BAR, HDA_DSP_SRAM_REG_FW_TRACEP); |