]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: SOF: extend the interface to stop DMA trace
authorLibin Yang <libin.yang@intel.com>
Wed, 30 Mar 2022 20:19:21 +0000 (13:19 -0700)
committerMark Brown <broonie@kernel.org>
Mon, 4 Apr 2022 07:39:06 +0000 (08:39 +0100)
commit6bdb6396590ffa4bf467696650047ee0ea023c5f
treeae69fc95292f3cc8c40bb3779d4f93d47b931836
parentd8c4d2b8834bfdef11ce00772cbdfc3b2a3e31de
ASoC: SOF: extend the interface to stop DMA trace

Change the interface to stop the DMA trace for suspend. Replace the
snd_sof_init_trace_ipc() and snd_sof_release_trace() calls with more
explicit interface for PM (the sole user for this interface).

The new snd_sof_trace_suspend() call takes the target PM state as argument,
allowing the trace implementation to decide how to handle the transition.
Use this information to release DMA resources only if DSP is suspended and
will not remain in D0.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Libin Yang <libin.yang@intel.com>
Reviewed-by: Kai Vehmanen <kai.vehmanen@intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Signed-off-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://lore.kernel.org/r/20220330201926.1330402-7-ranjani.sridharan@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/pm.c
sound/soc/sof/sof-priv.h
sound/soc/sof/trace.c