Linux Sound subsystem development
 help / color / mirror / Atom feed
* [PATCH v4 0/5] ASoC: Intel: Convert locking to guard()/scoped_guard()
@ 2026-06-26  8:28 phucduc.bui
  2026-06-26  8:29 ` [PATCH v4 1/5] ASoC: Intel: avs: Use guard() for locking phucduc.bui
                   ` (4 more replies)
  0 siblings, 5 replies; 6+ messages in thread
From: phucduc.bui @ 2026-06-26  8:28 UTC (permalink / raw)
  To: Mark Brown, Liam Girdwood, Cezary Rojewski
  Cc: Jaroslav Kysela, Takashi Iwai, Peter Ujfalusi, Bard Liao,
	Kai Vehmanen, Pierre-Louis Bossart, linux-sound, linux-kernel,
	bui duc phuc

From: bui duc phuc <phucduc.bui@gmail.com>

Hi all,

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

Most changes are straightforward conversions intended to simplify lock
handling and cleanup paths, with no intended functional changes.

The series has been compile-tested only.

Link v1:
https://lore.kernel.org/all/20260611115901.80438-1-phucduc.bui@gmail.com/

Link v2:
https://lore.kernel.org/all/20260618110649.227062-1-phucduc.bui@gmail.com/

Link v3: 
https://lore.kernel.org/all/CAABR9nGB9Z-caMwubqNAY1W9OwM6ZiFWqrqATJP9NtyNBbkL4Q@mail.gmail.com/

Changes in v2:
 - Reduce the series from 20 patches to 4 patches.
 - Drop smaller conversions that did not provide clear benefits.

Changes in v3:
 - Drop the scoped_guard() conversion for the function that still used
   a goto-based cleanup path.
 - Move the __free(kfree) conversion into a separate patch.

Changes in v4:
 - Add cleanup.h include where needed.
 - Remove unnecessary variables.
 - Reorder patches in the series.

Best regards,
Phuc


bui duc phuc (5):
  ASoC: Intel: avs: Use guard() for locking
  ASoC: Intel: avs: Use scoped_guard() for scoped locking
  ASoC: intel: atom: Use __free(kfree) for stream pointer
  ASoC: Intel: atom: Use guard() for locking
  ASoC: Intel: atom: Use scoped_guard() for scoped locking

 sound/soc/intel/atom/sst-atom-controls.c     | 67 +++++++++-----------
 sound/soc/intel/atom/sst-mfld-platform-pcm.c | 59 ++++++++---------
 sound/soc/intel/atom/sst/sst_ipc.c           |  5 +-
 sound/soc/intel/atom/sst/sst_pvt.c           |  9 ++-
 sound/soc/intel/avs/apl.c                    |  8 +--
 sound/soc/intel/avs/control.c                |  7 +-
 sound/soc/intel/avs/core.c                   |  4 +-
 sound/soc/intel/avs/debug.h                  | 10 +--
 sound/soc/intel/avs/debugfs.c                | 19 +++---
 sound/soc/intel/avs/ipc.c                    | 59 ++++++++---------
 sound/soc/intel/avs/loader.c                 | 15 +++--
 sound/soc/intel/avs/path.c                   | 30 +++------
 sound/soc/intel/avs/utils.c                  | 45 +++++--------
 13 files changed, 141 insertions(+), 196 deletions(-)

-- 
2.43.0


^ permalink raw reply	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2026-06-26  8:29 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-06-26  8:28 [PATCH v4 0/5] ASoC: Intel: Convert locking to guard()/scoped_guard() phucduc.bui
2026-06-26  8:29 ` [PATCH v4 1/5] ASoC: Intel: avs: Use guard() for locking phucduc.bui
2026-06-26  8:29 ` [PATCH v4 2/5] ASoC: Intel: avs: Use scoped_guard() for scoped locking phucduc.bui
2026-06-26  8:29 ` [PATCH v4 3/5] ASoC: intel: atom: Use __free(kfree) for stream pointer phucduc.bui
2026-06-26  8:29 ` [PATCH v4 4/5] ASoC: Intel: atom: Use guard() for locking phucduc.bui
2026-06-26  8:29 ` [PATCH v4 5/5] ASoC: Intel: atom: Use scoped_guard() for scoped locking phucduc.bui

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox