mirror of
https://github.com/torvalds/linux.git
synced 2024-11-24 05:02:12 +00:00
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>
This commit is contained in:
parent
29f4078f77
commit
e813526e55
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user