Re: [PATCH] alsa: support module on-demand loading for seq and timer

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Kay Sievers wrote:
> If CONFIG_SND_DYNAMIC_MINORS is used, assign /dev/snd/seq and
> /dev/snd/timer the usual static minors, and export specific
> module aliases to generate udev module on-demand loading
> instructions: ...
> As soon as userspace accesses any of these nodes, the in-kernel
> module-loader will load the module, and the device can be used.

Is this another mechanism than sound/core/sound.c::autoload_device()?
Because in this case, that function can go away.

> +++ b/sound/core/seq/seq.c
> +MODULE_ALIAS_CHARDEV(CONFIG_SND_MAJOR, SNDRV_MINOR_SEQUENCER);
> +MODULE_ALIAS("devname:snd/seq");

The device name that alsa-lib tries to use for autoloading is actually
/dev/aloadSEQ.

> This is part of systemd's effort to get rid of unconditional
> module load instructions and needless init scripts.

So you're going to add the entries for card driver autoloading
(/dev/aloadC*), too?


Regards,
Clemens
_______________________________________________
Alsa-devel mailing list
Alsa-devel@xxxxxxxxxxxxxxxx
http://mailman.alsa-project.org/mailman/listinfo/alsa-devel


[Index of Archives]     [ALSA User]     [Linux Audio Users]     [Kernel Archive]     [Asterisk PBX]     [Photo Sharing]     [Linux Sound]     [Video 4 Linux]     [Gimp]     [Yosemite News]

  Powered by Linux