Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Peter Ujfalusi and committed by
Mark Brown
e813526e 29f4078f

+4
+4
sound/soc/sof/trace.c
··· 457 457 { 458 458 int ret; 459 459 460 + /* dtrace is only supported with SOF_IPC */ 461 + if (sdev->pdata->ipc_type != SOF_IPC) 462 + sdev->dtrace_is_supported = false; 463 + 460 464 if (!sdev->dtrace_is_supported) 461 465 return 0; 462 466