linux/sound/pci/asihpi
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
..
Makefile ALSA: pci: Use *-y instead of *-objs in Makefile 2024-05-08 18:17:37 +02:00
asihpi.c ALSA: asihpi: Simplify error handling in PCM substream setup 2025-09-15 09:25:47 +02:00
hpi.h ALSA: asihpi: Remove unused declarations 2023-08-18 15:42:06 +02:00
hpi6000.c ALSA: asihpi: Use safer strscpy() instead of strcpy() 2025-07-11 09:53:17 +02:00
hpi6000.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpi6205.c ALSA: asihpi: check pao in control_message() 2023-03-14 17:02:15 +01:00
hpi6205.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpi_internal.h ALSA: asihpi: Remove unused declarations 2023-08-18 15:42:06 +02:00
hpi_version.h
hpicmn.c ALSA: pci/asihpi: fix kernel-doc 2020-07-07 12:03:17 +02:00
hpicmn.h ALSA: asihpi: fix comment syntax in file headers 2021-03-18 10:13:25 +01:00
hpidebug.c ALSA: asihpi: Use DIV_ROUND_UP() instead of open-coding it 2020-12-25 09:11:48 +01:00
hpidebug.h extract and use FILE_LINE macro 2023-10-18 14:43:21 -07:00
hpidspcd.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpidspcd.h ALSA: asihpi: fix comment syntax in file headers 2021-03-18 10:13:25 +01:00
hpifunc.c ALSA: asihpi - Remove useless code in hpi_meter_get_peak() 2022-09-01 14:37:22 +02:00
hpimsginit.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpimsginit.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpimsgx.c ALSA: asihpi: Fix potential OOB array access 2024-08-08 11:15:55 +02:00
hpimsgx.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpioctl.c ALSA: asihpi: Use standard print API 2024-08-08 07:49:47 +02:00
hpioctl.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpios.c treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00
hpios.h ALSA: asihpi: fix spellint typo in comments 2020-09-21 10:31:20 +02:00
hpipcida.h treewide: Replace GPLv2 boilerplate/reference with SPDX - rule 273 2019-06-05 17:30:30 +02:00