]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: SOF: Relocate and rework functionality for PCM stream freeing
authorPeter Ujfalusi <peter.ujfalusi@linux.intel.com>
Thu, 6 Feb 2025 09:28:25 +0000 (11:28 +0200)
committerMark Brown <broonie@kernel.org>
Thu, 6 Feb 2025 11:25:41 +0000 (11:25 +0000)
commit169ec0a541aac8afb215ab591b0fd53276686014
treefb858d9253ac196f09d5089d246b7f0d2e163c33
parent6eab7034579917f207ca6d8e3f4e11e85e0ab7d5
ASoC: SOF: Relocate and rework functionality for PCM stream freeing

Move the sof_pcm_stream_free() from sof-audio.c to pcm.c as static function
and add wrapper to free all active stream, which is going to be used in
ipc3/4 topology code (removes duplicated code).

With this change most of the PCM stream related code is located in one
source file for easier lookup and simplified flow.

Signed-off-by: Peter Ujfalusi <peter.ujfalusi@linux.intel.com>
Reviewed-by: Liam Girdwood <liam.r.girdwood@intel.com>
Reviewed-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Link: https://patch.msgid.link/20250206092828.7569-2-peter.ujfalusi@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-topology.c
sound/soc/sof/ipc4-topology.c
sound/soc/sof/pcm.c
sound/soc/sof/sof-audio.c
sound/soc/sof/sof-audio.h