Re: Persistent module storage [was Linux 2.4 Status / TODO page]

James A. Sutherland
2000-11-06T13:38:03Z

On Mon, 06 Nov 2000, David Woodhouse wrote:
> jgarzik@mandrakesoft.com said:
> > > * User continues to happily listen to radio through sound card
> > You're using the sound card without a driver?
>
> Yes. The sound card allows itself to be unloaded when the pass-through mixer
> levels are non-zero. This is reasonable iff it can be reloaded without
> destroying those levels again.
>
> jgarzik@mandrakesoft.com said:
> > If you create a post-action in /etc/modules.conf which initializes
> > the mixer to proper levels, this problem does not exist.
>
> Yes it does. It can be a few seconds between initialisation and the
> post-action running. That's plenty of time to miss what the news announcer
> was saying about whether you need to go to work today (my gf is a teacher)
> or to wake the entire house if the mixer levels don't default to zero.

So autoload the module with a "dont_screw_with_mixer" option. When the kernel
first boots, initialise the mixer to suitable settings (load the module with
"do_screw_with_mixer" or whatever); thereafter, the driver shouldn't change
the mixer settings on load.

James.