]> www.infradead.org Git - users/hch/misc.git/log
users/hch/misc.git
7 weeks agoALSA: seq: Fix KCSAN data-race warning at snd_seq_fifo_poll_wait()
Takashi Iwai [Wed, 17 Sep 2025 12:13:27 +0000 (14:13 +0200)]
ALSA: seq: Fix KCSAN data-race warning at snd_seq_fifo_poll_wait()

snd_seq_fifo_poll_wait() evaluates f->cells without locking after
poll_wait(), and KCSAN doesn't like it as it appears to be a
data-race.  Although this doesn't matter much in practice as the value
is volatile, it's still better to address it for the mind piece.

Wrap it with f->lock spinlock for avoiding the potential data race.

Reported-by: syzbot+c3dbc239259940ededba@syzkaller.appspotmail.com
Link: https://syzkaller.appspot.com/bug?extid=c3dbc239259940ededba
Signed-off-by: Takashi Iwai <tiwai@suse.de>
7 weeks agoALSA: spi/at73c213: Use guard() for spin locks
Takashi Iwai [Wed, 17 Sep 2025 11:12:49 +0000 (13:12 +0200)]
ALSA: spi/at73c213: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
7 weeks agoALSA: pcm: Disable bottom softirqs as part of spin_lock_irq() on PREEMPT_RT
Sebastian Andrzej Siewior [Mon, 15 Sep 2025 15:28:51 +0000 (17:28 +0200)]
ALSA: pcm: Disable bottom softirqs as part of spin_lock_irq() on PREEMPT_RT

snd_pcm_group_lock_irq() acquires a spinlock_t and disables interrupts
via spin_lock_irq(). This also implicitly disables the handling of
softirqs such as TIMER_SOFTIRQ.
On PREEMPT_RT softirqs are preemptible and spin_lock_irq() does not
disable them. That means a timer can be invoked during spin_lock_irq()
on the same CPU. Due to synchronisations reasons local_bh_disable() has
a per-CPU lock named softirq_ctrl.lock which synchronizes individual
softirq against each other.
syz-bot managed to trigger a lockdep report where softirq_ctrl.lock is
acquired in hrtimer_cancel() in addition to hrtimer_run_softirq(). This
is a possible deadlock.

The softirq_ctrl.lock can not be made part of spin_lock_irq() as this
would lead to too much synchronisation against individual threads on the
system. To avoid the possible deadlock, softirqs must be manually
disabled before the lock is acquired.

Disable softirqs before the lock is acquired on PREEMPT_RT.

Reported-by: syzbot+10b4363fb0f46527f3f3@syzkaller.appspotmail.com
Fixes: d2d6422f8bd1 ("x86: Allow to enable PREEMPT_RT.")
Signed-off-by: Sebastian Andrzej Siewior <bigeasy@linutronix.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
7 weeks agoALSA: serial-generic: remove shared static buffer
John Keeping [Mon, 15 Sep 2025 09:42:19 +0000 (10:42 +0100)]
ALSA: serial-generic: remove shared static buffer

If multiple instances of this driver are instantiated and try to send
concurrently then the single static buffer snd_serial_generic_tx_work()
will cause corruption in the data output.

Move the buffer into the per-instance driver data to avoid this.

Signed-off-by: John Keeping <jkeeping@inmusicbrands.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
7 weeks agoALSA: asihpi: Simplify error handling in PCM substream setup
Jihed Chaibi [Sun, 14 Sep 2025 20:59:45 +0000 (22:59 +0200)]
ALSA: asihpi: Simplify error handling in PCM substream setup

Refactor error handling in the PCM substream setup to combine redundant
checks and improve code readability. Free the dpcm structure and return
appropriate error codes (-EBUSY for HPI_ERROR_OBJ_ALREADY_OPEN, -EIO
for other errors) in a single block.

Signed-off-by: Jihed Chaibi <jihed.chaibi.dev@gmail.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
7 weeks agoALSA: aoa: Remove redundant size arguments from strscpy()
Thorsten Blum [Thu, 11 Sep 2025 21:43:22 +0000 (23:43 +0200)]
ALSA: aoa: Remove redundant size arguments from strscpy()

The size parameter of strscpy() is optional if the destination buffer
has a fixed length and strscpy() can automatically determine its size
using sizeof(). This makes many explicit size arguments redundant.

Remove them to shorten and simplify the code.

No functional changes intended.

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: sparc/dbri: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:29 +0000 (13:09 +0200)]
ALSA: sparc/dbri: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: sparc/cs4231: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:28 +0000 (13:09 +0200)]
ALSA: sparc/cs4231: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: sparc/amd7930: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:27 +0000 (13:09 +0200)]
ALSA: sparc/amd7930: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: usb-audio: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:26 +0000 (13:09 +0200)]
ALSA: usb-audio: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: usb: fcp: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:25 +0000 (13:09 +0200)]
ALSA: usb: fcp: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: line6: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:24 +0000 (13:09 +0200)]
ALSA: line6: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: ppc: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:23 +0000 (13:09 +0200)]
ALSA: ppc: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: snd_ps3: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:22 +0000 (13:09 +0200)]
ALSA: snd_ps3: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: parisc: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:21 +0000 (13:09 +0200)]
ALSA: parisc: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: snd-n64: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:20 +0000 (13:09 +0200)]
ALSA: snd-n64: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: sgio2audio: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:19 +0000 (13:09 +0200)]
ALSA: sgio2audio: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: arm: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:18 +0000 (13:09 +0200)]
ALSA: arm: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: aoa: Don't split string across lines
Takashi Iwai [Wed, 10 Sep 2025 11:09:17 +0000 (13:09 +0200)]
ALSA: aoa: Don't split string across lines

We shouldn't split a quoted string, as it worsens the grep-ability.
Put back to the single line, which also makes checkpatch.pl happier.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: aoa: Use guard() for spin locks
Takashi Iwai [Wed, 10 Sep 2025 11:09:16 +0000 (13:09 +0200)]
ALSA: aoa: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoASoC: tas2781: Add tas2118, tas2x20, tas5825 support
Baojun Xu [Sat, 30 Aug 2025 06:14:59 +0000 (14:14 +0800)]
ASoC: tas2781: Add tas2118, tas2x20, tas5825 support

Update ti,tas2781.yaml for adding tas2118, tas2x20, tas257x and tas582x.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Reviewed-by: Rob Herring (Arm) <robh@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoASoC: tas2781: Add tas2118, tas2x20, tas5825 support
Baojun Xu [Sat, 30 Aug 2025 06:14:58 +0000 (14:14 +0800)]
ASoC: tas2781: Add tas2118, tas2x20, tas5825 support

Add tas2020, tas2118, tas2120, tas2320, tas2570, tas2572, tas5825
tas5827 support in tas2781 driver.
Tas2118, tas2x20, tas257x have no on-chip DSP, tas582x have on-chip
DSP but have no calibration required stereo smart amplifier.

Signed-off-by: Baojun Xu <baojun.xu@ti.com>
Acked-by: Mark Brown <broonie@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: compress_offload: Add SNDRV_COMPRESS_AVAIL64 ioctl
Joris Verhaegen [Fri, 5 Sep 2025 09:12:56 +0000 (10:12 +0100)]
ALSA: compress_offload: Add SNDRV_COMPRESS_AVAIL64 ioctl

The previous patch introduced a 64-bit timestamp ioctl
(SNDRV_COMPRESS_TSTAMP64). To provide a consistent API, this patch
adds a corresponding 64-bit version of the SNDRV_COMPRESS_AVAIL ioctl.

A new struct snd_compr_avail64 is added to the UAPI, which includes
the 64-bit timestamp. The existing ioctl implementation is refactored
to handle both the 32-bit and 64-bit variants.

Reviewed-by: Miller Liang <millerliang@google.com>
Tested-by: Joris Verhaegen <verhaegen@google.com>
Signed-off-by: Joris Verhaegen <verhaegen@google.com>
Acked-by: Vinod Koul <vkoul@kernel.org>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250905091301.2711705-4-verhaegen@google.com
8 weeks agoALSA: compress_offload: Add SNDRV_COMPRESS_TSTAMP64 ioctl
Joris Verhaegen [Fri, 5 Sep 2025 09:12:55 +0000 (10:12 +0100)]
ALSA: compress_offload: Add SNDRV_COMPRESS_TSTAMP64 ioctl

The previous patch introduced the internal infrastructure for handling
64-bit timestamps. This patch exposes this capability to user-space.

Define the new ioctl command SNDRV_COMPRESS_TSTAMP64, which allows
applications to fetch the overflow-safe struct snd_compr_tstamp64.

The ioctl dispatch table is updated to handle the new command by
calling a new snd_compr_tstamp64 handler, while the legacy path is
renamed to snd_compr_tstamp32 for clarity.

This patch bumps the SNDRV_COMPRESS_VERSION to 0.4.0.

Reviewed-by: Miller Liang <millerliang@google.com>
Tested-by: Joris Verhaegen <verhaegen@google.com>
Signed-off-by: Joris Verhaegen <verhaegen@google.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250905091301.2711705-3-verhaegen@google.com
8 weeks agoALSA: compress_offload: Add 64-bit safe timestamp infrastructure
Joris Verhaegen [Fri, 5 Sep 2025 09:12:54 +0000 (10:12 +0100)]
ALSA: compress_offload: Add 64-bit safe timestamp infrastructure

The copied_total field in struct snd_compr_tstamp is a 32-bit
value that can overflow on long-running high-bitrate streams,
leading to incorrect calculations for buffer availablility.

This patch adds a 64-bit safe timestamping mechanism.
A new UAPI struct, snd_compr_tstamp64, is added which uses 64-bit
types for byte counters. The relevant ops structures across the
ASoC and core compress code are updated to use this new struct.
ASoC drivers are updated to use u64 counters.

Internal timestamps being u64 now, a compatibility function is added
to convert the 64-bit timestamp back to the 32-bit format for legacy
ioctl callers.

Reviewed-by: Miller Liang <millerliang@google.com>
Tested-by: Joris Verhaegen <verhaegen@google.com>
Signed-off-by: Joris Verhaegen <verhaegen@google.com>
Reviewed-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Reviewed-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Acked-by: Mark Brown <broonie@kernel.org>
Acked-by: Vinod Koul <vkoul@kernel.org>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250905091301.2711705-2-verhaegen@google.com
8 weeks agoALSA: scarlett2: Add Vocaster speaker/headphone mute controls
Geoffrey D. Bennett [Thu, 4 Sep 2025 15:53:51 +0000 (01:23 +0930)]
ALSA: scarlett2: Add Vocaster speaker/headphone mute controls

Add support for the speaker and headphone mute controls on Focusrite
Vocaster interfaces. Unlike other Focusrite interfaces, these mute
controls are per-output, not per-channel.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Link: https://patch.msgid.link/aLm2Dy6+O/eLTGVn@m.b4.vu
Signed-off-by: Takashi Iwai <tiwai@suse.de>
8 weeks agoALSA: cs4281: Send the PCM period elapsed notification properly
Chandra Mohan Sundar [Sat, 6 Sep 2025 16:21:54 +0000 (21:51 +0530)]
ALSA: cs4281: Send the PCM period elapsed notification properly

As part of spin lock code cleanup using guard(), a new
variable (period_elapsed) was introduced. However this variable
is never set, causing period elapsed notification to be not sent.

Set the value of period_elapsed appropiately.

This issue was reported by static coverity analyzer.

Fixes: 7a5127c2c8a5a ("ALSA: cs4281: Use guard() for spin locks")
Signed-off-by: Chandra Mohan Sundar <chandramohan.explore@gmail.com>
Link: https://patch.msgid.link/20250906162158.564899-1-chandramohan.explore@gmail.com
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: usb-audio: apply quirk for MOONDROP Quark2
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:48 +0000 (13:09 +0800)]
ALSA: usb-audio: apply quirk for MOONDROP Quark2

It reports a MIN value -15360 for volume control, but will mute when
setting it less than -14208

Tested-by: Guoli An <anguoli@uniontech.com>
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-4-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: apply "mixer_min_mute" quirks on some devices
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:47 +0000 (13:09 +0800)]
ALSA: usb-audio: apply "mixer_min_mute" quirks on some devices

- QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE
- QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE

Suggested-by: Guoli An <anguoli@uniontech.com>
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-3-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: add quirk QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:46 +0000 (13:09 +0800)]
ALSA: usb-audio: add quirk QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE

The same hardware problem to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE also
occurs on the capture streams on some USB devices. Add a new flag for
processing the quirk.

Link: https://lore.kernel.org/all/C22C1A172EBB9BD9+eccc2e4a-d21e-4a7d-848c-bbf3982feb94@uniontech.com/
Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-2-d4ca777b8512@uniontech.com
2 months agoALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE
Cryolitia PukNgae [Wed, 3 Sep 2025 05:09:45 +0000 (13:09 +0800)]
ALSA: usb-audio: rename QUIRK_FLAG_MIXER_MIN_MUTE to QUIRK_FLAG_MIXER_PLAYBACK_MIN_MUTE

As a preparation of introduction QUIRK_FLAG_MIXER_CAPTURE_MIN_MUTE

Also make it printing an info while applying

Signed-off-by: Cryolitia PukNgae <cryolitia@uniontech.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250903-sound-v1-1-d4ca777b8512@uniontech.com
2 months agoALSA: hda/conexant: Fix typos in comments
Thorsten Blum [Tue, 2 Sep 2025 15:48:41 +0000 (17:48 +0200)]
ALSA: hda/conexant: Fix typos in comments

s/OPLC/OLPC/

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250902154858.86102-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()
Dan Carpenter [Wed, 3 Sep 2025 05:52:24 +0000 (08:52 +0300)]
ALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()

We accidentally deleted the wrong line of code when we did the
conversion to guard() locks.  If the rme32->capture_substream has
already been set we should return -EBUSY.

Fixes: 8bb75ae244c5 ("ALSA: rme32: Use guard() for spin locks")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Link: https://patch.msgid.link/aLfXmIQRFTXr5h8O@stanley.mountain
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: hda/realtek: Use is_s4_resume() macro
Takashi Iwai [Tue, 2 Sep 2025 09:56:35 +0000 (11:56 +0200)]
ALSA: hda/realtek: Use is_s4_resume() macro

Use the given macro for determining the resume state instead of
referring to the raw value.

Only a cleanup for now.  The infrastructure might be changed in
future, though.

Link: https://patch.msgid.link/20250902095636.21462-1-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
2 months agoALSA: misc: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:33 +0000 (17:13 +0200)]
ALSA: misc: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-20-tiwai@suse.de
2 months agoALSA: virtio: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:32 +0000 (17:13 +0200)]
ALSA: virtio: Use guard() for spin locks

Replace the manual spin lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-19-tiwai@suse.de
2 months agoALSA: ac97bus: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:31 +0000 (17:13 +0200)]
ALSA: ac97bus: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-18-tiwai@suse.de
2 months agoALSA: atmel: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:30 +0000 (17:13 +0200)]
ALSA: atmel: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-17-tiwai@suse.de
2 months agoALSA: pxa2xx: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:29 +0000 (17:13 +0200)]
ALSA: pxa2xx: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-16-tiwai@suse.de
2 months agoALSA: aaci: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:28 +0000 (17:13 +0200)]
ALSA: aaci: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-15-tiwai@suse.de
2 months agoALSA: aoa: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:27 +0000 (17:13 +0200)]
ALSA: aoa: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-14-tiwai@suse.de
2 months agoALSA: sparc: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:26 +0000 (17:13 +0200)]
ALSA: sparc: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-13-tiwai@suse.de
2 months agoALSA: vxpocket: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:25 +0000 (17:13 +0200)]
ALSA: vxpocket: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-12-tiwai@suse.de
2 months agoALSA: pdaudiocf: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:24 +0000 (17:13 +0200)]
ALSA: pdaudiocf: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-11-tiwai@suse.de
2 months agoALSA: at73c213: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:23 +0000 (17:13 +0200)]
ALSA: at73c213: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-10-tiwai@suse.de
2 months agoALSA: xen: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:22 +0000 (17:13 +0200)]
ALSA: xen: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-9-tiwai@suse.de
2 months agoALSA: x86: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:21 +0000 (17:13 +0200)]
ALSA: x86: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-8-tiwai@suse.de
2 months agoALSA: x86: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:20 +0000 (17:13 +0200)]
ALSA: x86: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-7-tiwai@suse.de
2 months agoALSA: synth: Use guard() for preset locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:19 +0000 (17:13 +0200)]
ALSA: synth: Use guard() for preset locks

Define a macro for the preset locking/unlocking pairs for soundfont
using guard() macro as a further code cleanup.

The new macro is put in soundfont.h (and some function renames) along
with it for avoiding unnecessary troubles with clang.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-6-tiwai@suse.de
2 months agoALSA: synth: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:18 +0000 (17:13 +0200)]
ALSA: synth: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-5-tiwai@suse.de
2 months agoALSA: synth: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:17 +0000 (17:13 +0200)]
ALSA: synth: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-4-tiwai@suse.de
2 months agoALSA: i2c: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:16 +0000 (17:13 +0200)]
ALSA: i2c: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-3-tiwai@suse.de
2 months agoALSA: i2c: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:13:15 +0000 (17:13 +0200)]
ALSA: i2c: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829151335.7342-2-tiwai@suse.de
2 months agoALSA: caiaq: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:17 +0000 (17:07 +0200)]
ALSA: caiaq: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-10-tiwai@suse.de
2 months agoALSA: bcd2000: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:16 +0000 (17:07 +0200)]
ALSA: bcd2000: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-9-tiwai@suse.de
2 months agoALSA: usb: qcom: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:15 +0000 (17:07 +0200)]
ALSA: usb: qcom: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

The manual mutex lock/unlock are still left in
handle_uaudio_stream_req() and its callee as they have a bit complex
locking patterns.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-8-tiwai@suse.de
2 months agoALSA: line6: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:14 +0000 (17:07 +0200)]
ALSA: line6: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.  The core code of line6_pcm_release() is factored out,
so that it can be covered by guard() nicely, too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-7-tiwai@suse.de
2 months agoALSA: hiface: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:13 +0000 (17:07 +0200)]
ALSA: hiface: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-6-tiwai@suse.de
2 months agoALSA: hiface: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:12 +0000 (17:07 +0200)]
ALSA: hiface: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-5-tiwai@suse.de
2 months agoALSA: usx2y: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:11 +0000 (17:07 +0200)]
ALSA: usx2y: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-4-tiwai@suse.de
2 months agoALSA: ua101: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:10 +0000 (17:07 +0200)]
ALSA: ua101: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-3-tiwai@suse.de
2 months agoALSA: ua101: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:07:09 +0000 (17:07 +0200)]
ALSA: ua101: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150724.6886-2-tiwai@suse.de
2 months agoALSA: serial-u16550: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:24 +0000 (17:00 +0200)]
ALSA: serial-u16550: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-14-tiwai@suse.de
2 months agoALSA: portman2x4: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:23 +0000 (17:00 +0200)]
ALSA: portman2x4: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-13-tiwai@suse.de
2 months agoALSA: mts64: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:22 +0000 (17:00 +0200)]
ALSA: mts64: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-12-tiwai@suse.de
2 months agoALSA: mtpav: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:21 +0000 (17:00 +0200)]
ALSA: mtpav: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-11-tiwai@suse.de
2 months agoALSA: mpu401: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:20 +0000 (17:00 +0200)]
ALSA: mpu401: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-10-tiwai@suse.de
2 months agoALSA: dummy: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:19 +0000 (17:00 +0200)]
ALSA: dummy: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-9-tiwai@suse.de
2 months agoALSA: vx: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:18 +0000 (17:00 +0200)]
ALSA: vx: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-8-tiwai@suse.de
2 months agoALSA: opl4: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:17 +0000 (17:00 +0200)]
ALSA: opl4: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-7-tiwai@suse.de
2 months agoALSA: opl4: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:16 +0000 (17:00 +0200)]
ALSA: opl4: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-6-tiwai@suse.de
2 months agoALSA: opl3: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:15 +0000 (17:00 +0200)]
ALSA: opl3: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-5-tiwai@suse.de
2 months agoALSA: opl3: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:14 +0000 (17:00 +0200)]
ALSA: opl3: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-4-tiwai@suse.de
2 months agoALSA: aloop: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:13 +0000 (17:00 +0200)]
ALSA: aloop: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-3-tiwai@suse.de
2 months agoALSA: aloop: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 15:00:12 +0000 (17:00 +0200)]
ALSA: aloop: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829150026.6379-2-tiwai@suse.de
2 months agoALSA: wavefront: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:58 +0000 (16:52 +0200)]
ALSA: wavefront: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-19-tiwai@suse.de
2 months agoALSA: wss: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:57 +0000 (16:52 +0200)]
ALSA: wss: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-18-tiwai@suse.de
2 months agoALSA: wss: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:56 +0000 (16:52 +0200)]
ALSA: wss: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-17-tiwai@suse.de
2 months agoALSA: sscape: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:55 +0000 (16:52 +0200)]
ALSA: sscape: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-16-tiwai@suse.de
2 months agoALSA: emu8000: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:54 +0000 (16:52 +0200)]
ALSA: emu8000: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-15-tiwai@suse.de
2 months agoALSA: sb: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:53 +0000 (16:52 +0200)]
ALSA: sb: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-14-tiwai@suse.de
2 months agoALSA: sb: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:52 +0000 (16:52 +0200)]
ALSA: sb: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-13-tiwai@suse.de
2 months agoALSA: opti9xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:51 +0000 (16:52 +0200)]
ALSA: opti9xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-12-tiwai@suse.de
2 months agoALSA: opl3sa2: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:50 +0000 (16:52 +0200)]
ALSA: opl3sa2: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-11-tiwai@suse.de
2 months agoALSA: msnd: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:49 +0000 (16:52 +0200)]
ALSA: msnd: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-10-tiwai@suse.de
2 months agoALSA: gus: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:48 +0000 (16:52 +0200)]
ALSA: gus: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-9-tiwai@suse.de
2 months agoALSA: gus: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:47 +0000 (16:52 +0200)]
ALSA: gus: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

As replaced with the guard(mutex), no longer used snd_gf1_mem_lock()
is dropped, too.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-8-tiwai@suse.de
2 months agoALSA: es18xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:46 +0000 (16:52 +0200)]
ALSA: es18xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-7-tiwai@suse.de
2 months agoALSA: es1688: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:45 +0000 (16:52 +0200)]
ALSA: es1688: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-6-tiwai@suse.de
2 months agoALSA: cs423x: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:44 +0000 (16:52 +0200)]
ALSA: cs423x: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-5-tiwai@suse.de
2 months agoALSA: cs423x: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:43 +0000 (16:52 +0200)]
ALSA: cs423x: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-4-tiwai@suse.de
2 months agoALSA: cmi8330: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:42 +0000 (16:52 +0200)]
ALSA: cmi8330: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-3-tiwai@suse.de
2 months agoALSA: ad1816a: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:52:41 +0000 (16:52 +0200)]
ALSA: ad1816a: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829145300.5460-2-tiwai@suse.de
2 months agoALSA: ymfpci: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:36 +0000 (16:43 +0200)]
ALSA: ymfpci: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-62-tiwai@suse.de
2 months agoALSA: vx222: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:35 +0000 (16:43 +0200)]
ALSA: vx222: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-61-tiwai@suse.de
2 months agoALSA: via82xx: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:34 +0000 (16:43 +0200)]
ALSA: via82xx: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-60-tiwai@suse.de
2 months agoALSA: trident: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:33 +0000 (16:43 +0200)]
ALSA: trident: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-59-tiwai@suse.de
2 months agoALSA: trident: Use guard() for mutex locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:32 +0000 (16:43 +0200)]
ALSA: trident: Use guard() for mutex locks

Replace the manual mutex lock/unlock pairs with guard() for code
simplification.

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-58-tiwai@suse.de
2 months agoALSA: sonicvibes: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:31 +0000 (16:43 +0200)]
ALSA: sonicvibes: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-57-tiwai@suse.de
2 months agoALSA: sis7019: Use guard() for spin locks
Takashi Iwai [Fri, 29 Aug 2025 14:43:30 +0000 (16:43 +0200)]
ALSA: sis7019: Use guard() for spin locks

Clean up the code using guard() for spin locks.

Merely code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/20250829144342.4290-56-tiwai@suse.de