ASoC: SOF: trace: The dtrace is only available with SOF_IPC
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Fri, 6 May 2022 13:02:29 +0000 (16:02 +0300)
committerMark Brown <broonie@kernel.org>
Mon, 9 May 2022 18:46:39 +0000 (19:46 +0100)
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>
sound/soc/sof/trace.c

index ba6361b..5d171bf 100644 (file)
@@ -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;