On Mon, 06 Nov 2000, Alan Cox wrote: > > 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. > > Which is part of what persistent module data lets you do. And without having > to mess with dont_screw_with_mixer (which if you get it wrong btw can be > fatal and hang the hardware) Eh? You just load the driver once, probably on boot, to configure sane values. This time round, you use an argument (or an ioctl or whatever) to specify the values you want. (cat /etc/sysconfig/sound/defaultvolume > /dev/sound/mixer or whatever). After that, the module can be unloaded and loaded as needed, without any need to touch the mixer settings except in response to *explicit* "set volume" commands from userspace. James. - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [EMAIL PROTECTED] Please read the FAQ at http://www.tux.org/lkml/
- Re: Persistent module storage [was Linux 2.4 Status /... Jeff Garzik
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... Jeff Garzik
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... Jeff Garzik
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... David Woodhouse
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Paul Jakma
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... Dan Hollis
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland
- Re: Persistent module storage [was Linux 2.4 Status /... Alan Cox
- Re: Persistent module storage [was Linux 2.4 Status /... James A . Sutherland