Commit c29287bb authored by Jihed Chaibi's avatar Jihed Chaibi Committed by Takashi Iwai
Browse files

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: default avatarJihed Chaibi <jihed.chaibi.dev@gmail.com>
Signed-off-by: default avatarTakashi Iwai <tiwai@suse.de>
parent e135eeef
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment