Re: [PATCH v4] ALSA: core: Reject zero major number

From: Takashi Iwai

Date: Wed Nov 25 2026 - 08:35:38 EST


On Wed, 25 Nov 2026 10:35:37 +0100,
Sreeraj S Kurup wrote:
>
> Reject a zero major number before calling register_chrdev(),
> as ALSA expects a fixed major number.
>
> Remove the redundant major variable and use snd_major
> directly with module_param_named().
>
> Keep a separate configured card limit for automatic
> module loading, as snd_ecards_limit may increase at
> runtime when cards are registered at higher indices.
>
> Update device number creation and character device
> registration and unregistration to use snd_major.
>
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@xxxxxxxxx>

Applied now. Thanks.


Takashi