summaryrefslogtreecommitdiffstats
path: root/sound/soc/sof/ops.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2021-10-06 14:06:29 +0300
committerMark Brown <broonie@kernel.org>2021-10-07 15:45:24 +0100
commit3f7561f74169e199f9d6f4f0cdb9eb681052381a (patch)
tree22b7d876a2f962db973f67eba238754a1a4fc2ee /sound/soc/sof/ops.h
parente85c26eca639f3cf0ad989756f0eac2045391bb6 (diff)
downloadlinux-3f7561f74169e199f9d6f4f0cdb9eb681052381a.tar.bz2
ASoC: SOF: ipc and dsp dump: Add markers for better visibility
Add markers to identify the start and end of the IPC and DSP dumps in the kernel log. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Link: https://lore.kernel.org/r/20211006110645.26679-4-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ops.h')
-rw-r--r--sound/soc/sof/ops.h10
1 files changed, 8 insertions, 2 deletions
diff --git a/sound/soc/sof/ops.h b/sound/soc/sof/ops.h
index a93aa5b943b2..d143a35f16fc 100644
--- a/sound/soc/sof/ops.h
+++ b/sound/soc/sof/ops.h
@@ -243,14 +243,20 @@ snd_sof_dsp_set_power_state(struct snd_sof_dev *sdev,
/* debug */
static inline void snd_sof_dsp_dbg_dump(struct snd_sof_dev *sdev, u32 flags)
{
- if (sof_ops(sdev)->dbg_dump)
+ if (sof_ops(sdev)->dbg_dump) {
+ dev_err(sdev->dev, "------------[ DSP dump start ]------------\n");
sof_ops(sdev)->dbg_dump(sdev, flags);
+ dev_err(sdev->dev, "------------[ DSP dump end ]------------\n");
+ }
}
static inline void snd_sof_ipc_dump(struct snd_sof_dev *sdev)
{
- if (sof_ops(sdev)->ipc_dump)
+ if (sof_ops(sdev)->ipc_dump) {
+ dev_err(sdev->dev, "------------[ IPC dump start ]------------\n");
sof_ops(sdev)->ipc_dump(sdev);
+ dev_err(sdev->dev, "------------[ IPC dump end ]------------\n");
+ }
}
static inline int snd_sof_debugfs_add_region_item(struct snd_sof_dev *sdev,