[PATCH 00/20] ASoC: Intel: Use guard() for mutex & spin locks

From: phucduc . bui

Date: Thu Jun 11 2026 - 07:59:35 EST


From: bui duc phuc <phucduc.bui@xxxxxxxxx>

Hi all,

This series converts mutex and spinlock handling in Intel ASoC drivers
to use guard()/scoped_guard() helpers.

Most patches are straightforward conversions. A few patches include
small cleanup changes as part of the conversion process; these are
documented in the individual commit messages. Overall, the series is
intended to simplify the code and cleanup paths, with no behavioral
changes to the affected functions.

The series has been compile-tested only.

Best regards,
Phuc

bui duc phuc (20):
ASoC: Intel: catpt: ipc: Use guard() for mutex & spin locks
ASoC: Intel: catpt: dsp: Use guard() for mutex locks
ASoC: Intel: avs: utils: Use guard() for mutex locks
ASoC: Intel: avs: probes: Use guard() for spin locks
ASoC: Intel: avs: pcm: Use guard() for mutex & spin locks
ASoC: Intel: avs: path: Use guard() for mutex & spin locks
ASoC: Intel: avs: loader: Use guard() for mutex locks
ASoC: Intel: avs: ipc: Use guard() for mutex & spin locks
ASoC: Intel: avs: icl: Use guard() for spin locks
ASoC: Intel: avs: debugfs: Use guard() for spin locks
ASoC: Intel: avs: debug: Use guard() for spin locks
ASoC: Intel: avs: core: Use guard() for mutex & spin locks
ASoC: Intel: avs: control: Use guard() for spin locks
ASoC: Intel: avs: apl: Use guard() for spin locks
ASoC: Intel: atom: sst_stream: Use guard() for mutex locks
ASoC: Intel: atom: sst_pvt: Use guard() for mutex & spin locks
ASoC: Intel: atom: sst: Use guard() for spin locks
ASoC: Intel: atom: sst-atom-controls: Use guard() for mutex locks
ASoC: Intel: atom: sst-mfld-platform-pcm: Use guard() for mutex & spin
locks
ASoC: Intel: atom: sst_ipc: Use guard() for spin locks

sound/soc/intel/atom/sst-atom-controls.c | 85 +++++++--------
sound/soc/intel/atom/sst-mfld-platform-pcm.c | 51 ++++-----
sound/soc/intel/atom/sst/sst.c | 37 ++++---
sound/soc/intel/atom/sst/sst_ipc.c | 9 +-
sound/soc/intel/atom/sst/sst_pvt.c | 19 ++--
sound/soc/intel/atom/sst/sst_stream.c | 52 ++++-----
sound/soc/intel/avs/apl.c | 7 +-
sound/soc/intel/avs/control.c | 7 +-
sound/soc/intel/avs/core.c | 11 +-
sound/soc/intel/avs/debug.h | 9 +-
sound/soc/intel/avs/debugfs.c | 18 ++--
sound/soc/intel/avs/icl.c | 10 +-
sound/soc/intel/avs/ipc.c | 105 +++++++++----------
sound/soc/intel/avs/loader.c | 14 +--
sound/soc/intel/avs/path.c | 39 +++----
sound/soc/intel/avs/pcm.c | 21 ++--
sound/soc/intel/avs/probes.c | 11 +-
sound/soc/intel/avs/utils.c | 39 +++----
sound/soc/intel/catpt/dsp.c | 11 +-
sound/soc/intel/catpt/ipc.c | 12 +--
20 files changed, 231 insertions(+), 336 deletions(-)

--
2.43.0