summaryrefslogtreecommitdiff
path: root/sound/soc/sof/ipc3-priv.h
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2022-05-16 13:47:09 +0300
committerMark Brown <broonie@kernel.org>2022-05-19 18:44:17 +0300
commit4b49cbd1e7ebe4b000a7eedc4f910488da62c055 (patch)
treeec8569c21b5ae701cce76b66d52db555b4a1b0af /sound/soc/sof/ipc3-priv.h
parentb69979a1ec2d9347a43bf0ebdad2c1eb23447ca6 (diff)
downloadlinux-4b49cbd1e7ebe4b000a7eedc4f910488da62c055.tar.xz
ASoC: SOF: Modify the host trace_init parameter list to include dmab
Stop host code (AMD, Intel) to access sdev->dmatb directly. Modify the trace_init prototype to include the pointer to a struct snd_dma_buffer. The ipc3-dtrace passes for now the pointer to sdev->dmatb, but the aim is to move all tracing related runtime information local to a trace implementation. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com> Reviewed-by: Paul Olaru <paul.olaru@oss.nxp.com> Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com> Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com> Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com> Link: https://lore.kernel.org/r/20220516104711.26115-7-peter.ujfalusi@linux.intel.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/sof/ipc3-priv.h')
-rw-r--r--sound/soc/sof/ipc3-priv.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/sof/ipc3-priv.h b/sound/soc/sof/ipc3-priv.h
index 21f0bd20323f..f5044202f3c5 100644
--- a/sound/soc/sof/ipc3-priv.h
+++ b/sound/soc/sof/ipc3-priv.h
@@ -31,12 +31,13 @@ int ipc3_dtrace_posn_update(struct snd_sof_dev *sdev,
/* dtrace platform callback wrappers */
static inline int sof_dtrace_host_init(struct snd_sof_dev *sdev,
+ struct snd_dma_buffer *dmatb,
struct sof_ipc_dma_trace_params_ext *dtrace_params)
{
struct snd_sof_dsp_ops *dsp_ops = sdev->pdata->desc->ops;
if (dsp_ops->trace_init)
- return dsp_ops->trace_init(sdev, dtrace_params);
+ return dsp_ops->trace_init(sdev, dmatb, dtrace_params);
return 0;
}