Re: [PATCH v3 0/5] ASoC: Intel: Convert locking to guard()/scoped_guard()

From: Cezary Rojewski

Date: Tue Jun 23 2026 - 15:55:20 EST


On 6/23/2026 12:57 PM, phucduc.bui@xxxxxxxxx wrote:
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 changes are straightforward conversions intended to simplify lock
handling and cleanup paths, with no intended functional changes.

The series has been compile-tested only.

...

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

The order is off just by looking at it. On top of what I mentioned in 1/5, please fix the ordering so that both avs and atom drivers receive updates in the same manner.

TLDR:

1. ASoC: Intel: avs: Use guard() for locking
2. ASoC: Intel: avs: Use scoped_guard() for scoped locking
3. ASoC: Intel: atom: Use guard() for locking
4. ASoC: Intel: atom: Use scoped_guard() for scoped locking
5. ASoC: Intel: atom: Use __free(kfree) for stream pointer

Kind regards,
Czarek