aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Ujfalusi <[email protected]>2022-05-16 13:47:10 +0300
committerMark Brown <[email protected]>2022-05-19 16:44:18 +0100
commit08341b27bd2ee3c79265ef7925b3bc68a1790ab9 (patch)
tree7cf10bfb232ccab5690f551b52041da8b9f1abc9
parent4b49cbd1e7ebe4b000a7eedc4f910488da62c055 (diff)
ASoC: SOF: Introduce opaque storage of private data for firmware tracing
Firmware tracing implementations can allocate and store their privately used data behind the fw_trace_pdata pointer instead of adding more members to struct snd_sof_dev. Signed-off-by: Peter Ujfalusi <[email protected]> Reviewed-by: Paul Olaru <[email protected]> Reviewed-by: Pierre-Louis Bossart <[email protected]> Reviewed-by: Bard Liao <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Mark Brown <[email protected]>
-rw-r--r--sound/soc/sof/sof-priv.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/soc/sof/sof-priv.h b/sound/soc/sof/sof-priv.h
index b176fc7e346c..d8d81e1ec259 100644
--- a/sound/soc/sof/sof-priv.h
+++ b/sound/soc/sof/sof-priv.h
@@ -549,6 +549,7 @@ struct snd_sof_dev {
/* firmwre tracing */
bool fw_trace_is_supported; /* set with Kconfig or module parameter */
+ void *fw_trace_data; /* private data used by firmware tracing implementation */
/* DMA for Trace */
struct snd_dma_buffer dmatb;