aboutsummaryrefslogtreecommitdiffstats
path: root/sound/pci (follow)
AgeCommit message (Collapse)AuthorFilesLines
2025-09-15ALSA: asihpi: Simplify error handling in PCM substream setupJihed Chaibi1-8/+8
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-06ALSA: cs4281: Send the PCM period elapsed notification properlyChandra Mohan Sundar1-0/+1
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>
2025-09-03ALSA: rme32: Fix serialization in snd_rme32_capture_adat_open()Dan Carpenter1-1/+1
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>
2025-09-01ALSA: ymfpci: Use guard() for spin locksTakashi Iwai1-147/+101
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-01ALSA: vx222: Use guard() for mutex locksTakashi Iwai1-8/+4
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-01ALSA: via82xx: Use guard() for spin locksTakashi Iwai2-47/+39
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-01ALSA: trident: Use guard() for spin locksTakashi Iwai1-184/+140
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-01ALSA: trident: Use guard() for mutex locksTakashi Iwai1-14/+5
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-01ALSA: sonicvibes: Use guard() for spin locksTakashi Iwai1-69/+44
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-01ALSA: sis7019: Use guard() for spin locksTakashi Iwai1-25/+14
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-01ALSA: sis7019: Use guard() for mutex locksTakashi Iwai1-3/+1
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-01ALSA: rme9652: Use guard() for spin locksTakashi Iwai1-121/+78
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-01ALSA: hdspm: Use guard() for spin locksTakashi Iwai1-174/+127
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-01ALSA: hdsp: Use guard() for spin locksTakashi Iwai1-186/+125
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-01ALSA: rme96: Use guard() for spin locksTakashi Iwai1-126/+85
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-01ALSA: rme32: Use guard() for spin locksTakashi Iwai1-96/+56
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-01ALSA: pcxhr: Use guard() for mutex locksTakashi Iwai4-86/+45
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-01ALSA: oxygen: Use guard() for spin locksTakashi Iwai6-153/+140
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-01ALSA: oxygen: Use guard() for mutex locksTakashi Iwai7-119/+59
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-01ALSA: nm256: Use guard() for spin locksTakashi Iwai1-20/+10
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-01ALSA: nm256: Use guard() for mutex locksTakashi Iwai1-5/+2
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-01ALSA: mixart: Use guard() for mutex locksTakashi Iwai3-95/+70
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-01ALSA: maestro3: Use guard() for spin locksTakashi Iwai1-16/+7
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-01ALSA: lx6464es: Use guard() for mutex locksTakashi Iwai2-108/+48
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-01ALSA: lola: Use guard() for spin locksTakashi Iwai2-5/+2
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-01ALSA: lola: Use guard() for mutex locksTakashi Iwai1-20/+13
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-01ALSA: korg1212: Use guard() for spin locksTakashi Iwai1-110/+58
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-01ALSA: korg1212: Use guard() for mutex locksTakashi Iwai1-10/+4
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-01ALSA: intel8x0: Use guard() for spin locksTakashi Iwai2-97/+89
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-01ALSA: ice1712: Use guard() for spin locksTakashi Iwai4-292/+238
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-01ALSA: ice1712: Use guard() for mutex locksTakashi Iwai11-189/+132
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-01ALSA: fm801: Use guard() for spin locksTakashi Iwai1-41/+30
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-01ALSA: es1968: Use guard() for spin locksTakashi Iwai1-92/+54
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-01ALSA: es1968: Use guard() for mutex locksTakashi Iwai1-10/+4
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-01ALSA: es1938: Use guard() for spin locksTakashi Iwai1-18/+10
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-01ALSA: emu10k1x: Use guard() for spin locksTakashi Iwai1-134/+89
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-01ALSA: emu10k1: Use guard() for spin locksTakashi Iwai11-326/+193
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-01ALSA: emu10k1: Use guard() for emu1010 FPGA lockingTakashi Iwai4-27/+14
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-01ALSA: emu10k1: Use guard() for mutex locksTakashi Iwai2-35/+20
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-01ALSA: echoaudio: Use guard() for spin locksTakashi Iwai6-89/+62
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-01ALSA: echoaudio: Use guard() for mutex locksTakashi Iwai1-22/+14
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-01ALSA: ctxfi: Use guard() for spin locksTakashi Iwai5-197/+115
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-01ALSA: ctxfi: Use guard() for mutex locksTakashi Iwai2-25/+19
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-01ALSA: cs5535audio: Use guard() for spin locksTakashi Iwai2-14/+12
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-01ALSA: cs46xx: Use guard() for spin locksTakashi Iwai3-108/+69
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-01ALSA: cs46xx: Use guard() for mutex locksTakashi Iwai3-98/+60
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-01ALSA: cs4281: Use guard() for spin locksTakashi Iwai1-34/+19
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-01ALSA: cmipci: Use guard() for spin locksTakashi Iwai1-96/+69
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-01ALSA: cmipci: Use guard() for mutex locksTakashi Iwai1-14/+6
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-01ALSA: ca0106: Use guard() for spin locksTakashi Iwai3-135/+97
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