I have an old SB16 sound card that is not pnp, and requires options passed to modprobe when the module is loaded. /etc/init.d/alsasound handles loading of the alsa modules. The current behavior of this script is such that options given in modules.conf for the sound card aliases are not honored. The workaround for this would be to specify the options directly for the sound card driver, not for the module. However, this would not work for systems having multiple non-pnp sound cards that require the same driver with different options. A simple patch is proposed that corrects the described behaviour. Reproducible: Always Steps to Reproduce: Install a non-pnp sound card: 1. compile 2.6 kernel with alsa support 2. # emerge media-sound/alsa-tools media-sound/alsa-utils Add lines to /etc/modules.d/aliases to specify the sound card, and specify options to the module, such as > alias snd-card-0 snd-sb16 > options snd-card-0 irq=7 isapnp=0 # modules-update # /etc/init.d/alsasound restart Actual Results: The module options for the alias 'snd-card-0' are not used because /etc/init.d/alsasound runs the command `modprobe snd-sb16`. Expected Results: /etc/init.d/alsasound should run the command `modprobe snd-card-0`
Created attachment 43962 [details, diff] patch to make alsasound honor alias options
thanks. It's in cvs now.