aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/sound/soc/sof/trace.c
diff options
context:
space:
mode:
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>2022-01-28 14:36:23 +0200
committerMark Brown <broonie@kernel.org>2022-02-08 13:38:04 +0000
commitbab05b508ebfde32a14880696a13820d54510fcb (patch)
tree19fae9832c040369efd558317f9c69f158f76703 /sound/soc/sof/trace.c
parentASoC: SOF: intel: hda-trace: Pass the dma buffer pointer to hda_dsp_trace_prepare (diff)
downloadwireguard-linux-bab05b508ebfde32a14880696a13820d54510fcb.tar.xz
wireguard-linux-bab05b508ebfde32a14880696a13820d54510fcb.zip
ASoC: SOF: dma-trace: Pass pointer to params_ext struct in trace_init()
Instead of passing a pointer to the stream_tag within the struct sof_ipc_dma_trace_params_ext, pass the pointer to the containing struct. AMD needs to update buffer.phy_addr (and don't really use the stream_tag) for the trace implementation. Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.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/20220128123623.23569-3-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/sof/trace.c b/sound/soc/sof/trace.c
index 9b505c4fe794..2335d0f06d42 100644
--- a/sound/soc/sof/trace.c
+++ b/sound/soc/sof/trace.c
@@ -409,7 +409,7 @@ int snd_sof_init_trace_ipc(struct snd_sof_dev *sdev)
sdev->host_offset = 0;
sdev->dtrace_draining = false;
- ret = snd_sof_dma_trace_init(sdev, &params.stream_tag);
+ ret = snd_sof_dma_trace_init(sdev, &params);
if (ret < 0) {
dev_err(sdev->dev,
"error: fail in snd_sof_dma_trace_init %d\n", ret);