Jihed Chaibi
c29287bb32
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 >
2025-09-15 09:25:47 +02:00
Chandra Mohan Sundar
400f60b274
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: 7a5127c2c8 ("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 >
2025-09-06 19:55:10 +02:00
Dan Carpenter
8409816b1e
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: 8bb75ae244 ("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 >
2025-09-03 09:21:58 +02:00
Takashi Iwai
8c0cb47e26
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
2025-09-01 13:52:43 +02:00
Takashi Iwai
dde5decc43
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
2025-09-01 13:52:43 +02:00
Takashi Iwai
9d60b94f13
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
2025-09-01 13:52:43 +02:00
Takashi Iwai
62d8070db6
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
2025-09-01 13:52:43 +02:00
Takashi Iwai
4f83e1da6e
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
2025-09-01 13:52:43 +02:00
Takashi Iwai
fa670cbaee
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
2025-09-01 13:52:42 +02:00
Takashi Iwai
8e11f94ea1
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
2025-09-01 13:52:42 +02:00
Takashi Iwai
e7b99fdddf
ALSA: sis7019: 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-55-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
bd6aa020ec
ALSA: rme9652: 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-54-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
02699abfbd
ALSA: hdspm: 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-53-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
d422878cae
ALSA: hdsp: 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-52-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
d3424b8bf7
ALSA: rme96: 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-51-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
8bb75ae244
ALSA: rme32: 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-50-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
26e4346cff
ALSA: pcxhr: 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-49-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
4751026c79
ALSA: oxygen: 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-48-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
8ecafe5dac
ALSA: oxygen: 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-47-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
d1d88d2850
ALSA: nm256: 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-46-tiwai@suse.de
2025-09-01 13:52:42 +02:00
Takashi Iwai
6c56792a05
ALSA: nm256: 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-45-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
23ab90a965
ALSA: mixart: 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-44-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
35dea82a43
ALSA: maestro3: 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-43-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
3023cc514a
ALSA: lx6464es: 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-42-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
e25667d3f3
ALSA: lola: 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-41-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
18aec9ea32
ALSA: lola: 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-40-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
aff742c156
ALSA: korg1212: 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-39-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
940653fff0
ALSA: korg1212: 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-38-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
220a76bbf7
ALSA: intel8x0: 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-37-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
d0b8e41904
ALSA: ice1712: 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-36-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
9da230b3b2
ALSA: ice1712: 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-35-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
2b429331f5
ALSA: fm801: 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-34-tiwai@suse.de
2025-09-01 13:52:41 +02:00
Takashi Iwai
3ea4db1f20
ALSA: es1968: 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-33-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
819107cdeb
ALSA: es1968: 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-32-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
f9733d65a6
ALSA: es1938: 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-31-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
1af61c669b
ALSA: emu10k1x: 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-30-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
3a0c3159f7
ALSA: emu10k1: 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-29-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
7c4a379e06
ALSA: emu10k1: Use guard() for emu1010 FPGA locking
...
The snd_emu1010_fpga_lock() and _unlock() call pairs can be simplified
gracefully with the introduction of guard().
Only code refactoring, and no functional changes.
Signed-off-by: Takashi Iwai <tiwai@suse.de >
Link: https://patch.msgid.link/20250829144342.4290-28-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
f44f745f75
ALSA: emu10k1: 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-27-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
9bd92d6673
ALSA: echoaudio: 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-26-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
3eda594925
ALSA: echoaudio: 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-25-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
be9478bd3a
ALSA: ctxfi: 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-24-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
e1d4c746bb
ALSA: ctxfi: 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-23-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
e8eca9fec2
ALSA: cs5535audio: 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-22-tiwai@suse.de
2025-09-01 13:52:40 +02:00
Takashi Iwai
0ba9da2d6f
ALSA: cs46xx: 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-21-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
02ba95351a
ALSA: cs46xx: 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-20-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
7a5127c2c8
ALSA: cs4281: 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-19-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
40bc78567f
ALSA: cmipci: 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-18-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
d0d95e9bd8
ALSA: cmipci: 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-17-tiwai@suse.de
2025-09-01 13:52:39 +02:00
Takashi Iwai
22ec127926
ALSA: ca0106: 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-16-tiwai@suse.de
2025-09-01 13:52:39 +02:00