diff options
| author | Ranjani Sridharan <[email protected]> | 2021-09-27 15:05:14 +0300 |
|---|---|---|
| committer | Mark Brown <[email protected]> | 2021-10-01 20:48:28 +0100 |
| commit | 8b0014169254513bda914ba5d49a09458a919488 (patch) | |
| tree | b26ae4c89a7e597fcc9f1d77a872700abe08b4f3 /tools/perf/scripts/python/bin/stackcollapse-report | |
| parent | 1b7d57d7178697ebdd9e6f21b4953ada168d2a61 (diff) | |
ASoC: SOF: Introduce widget use_count
Add a new field, use_count to struct snd_sof_widget to keep track
of the usage count for each widget. Since widgets can belong to
multiple pipelines, this field will ensure that the widget
is setup only when the first pipeline that needs it is started
and freed when the last pipeline that needs it is stopped. There is
no need to protect the widget use_count access as the core already
handles mutual exclusion at the PCM level.
Add a new helper sof_widget_free() to handle freeing the SOF
widgets and export the sof_widget_setup/free() functions.
Signed-off-by: Ranjani Sridharan <[email protected]>
Reviewed-by: Guennadi Liakhovetski <[email protected]>
Reviewed-by: Pierre-Louis Bossart <[email protected]>
Reviewed-by: Kai Vehmanen <[email protected]>
Signed-off-by: Daniel Baluta <[email protected]>
Signed-off-by: Peter Ujfalusi <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Mark Brown <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-report')
0 files changed, 0 insertions, 0 deletions