diff options
author | Peter Ujfalusi <peter.ujfalusi@linux.intel.com> | 2022-05-06 16:02:29 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2022-05-09 21:46:39 +0300 |
commit | e813526e5535ab009e2550e1da63abf297e1af68 (patch) | |
tree | 7c8bc37a27cc422a7a9fb2f43f22fe28973ebb6e /sound/soc/sof/trace.c | |
parent | 29f4078f777fed4cb47695b284938fbfd80f990e (diff) | |
download | linux-e813526e5535ab009e2550e1da63abf297e1af68.tar.xz |
ASoC: SOF: trace: The dtrace is only available with SOF_IPC
Currently the dtrace only supported with SOF_IPC.
Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Rander Wang <rander.wang@intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220506130229.23354-1-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/trace.c')
-rw-r--r-- | sound/soc/sof/trace.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/sound/soc/sof/trace.c b/sound/soc/sof/trace.c index ba6361b5d64b..5d171bf8a5ea 100644 --- a/sound/soc/sof/trace.c +++ b/sound/soc/sof/trace.c @@ -457,6 +457,10 @@ int snd_sof_init_trace(struct snd_sof_dev *sdev) { int ret; + /* dtrace is only supported with SOF_IPC */ + if (sdev->pdata->ipc_type != SOF_IPC) + sdev->dtrace_is_supported = false; + if (!sdev->dtrace_is_supported) return 0; |