Re: [PATCH] ALSA: aoa: Return ENODEV when no sound card is available

From: Takashi Iwai

Date: Tue Dec 01 2026 - 02:47:25 EST


On Mon, 30 Nov 2026 13:34:45 +0100,
Sreeraj S Kurup wrote:
>
> aoa_snd_device_new() returns -ENOMEM when aoa_get_card()
> returns NULL.
>
> This is misleading because the failure indicates that no ALSA
> card is available, not that memory allocation failed.
>
> Return -ENODEV instead to report the missing device correctly.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>

Applied to for-next branch. Thanks.


Takashi