On Don, 2005-08-18 at 10:27 -0500, Bruce Dubbs wrote:
> Jürg Billeter wrote:
> 
> > udev rules can/should be extended for specific devices, e.g.
> > 
> > KERNEL=="controlC[0-9]*", RUN+="/usr/lib/alsa.hotplug"
> 
> This brings up a question that was asked of me privately.  Why are we
> using udev/hotplug for alsa at all?  Why not just a simple init script
> that does a `alsactl restore`.
> 
> I don't know the answer to this question.  I suppose it might be for a
> usb sound adaptor that someone plugs in after the system is booted, but
> it seems that we have a difficult and complex solution that we are
> providing for everyone when only a very small minority would ever need
> this extra capabilty.

With asynchronous hotplug events and modular sound drivers you wouldn't
know when it's time to run the alsa initscript, neither with pci nor
with usb. And if you unload and reload or manually load your sound
module after start-up, volumes wouldn't get restored.

Sure, it's not necessary if you don't use modules for sound devices,
only use non-hotpluggable sound devices, and garantuee that udevstart
has run before trying to run alsactl. But these conditions can't be met
on all systems.

Jürg
-- 
Jürg Billeter <[EMAIL PROTECTED]>

--
http://linuxfromscratch.org/mailman/listinfo/blfs-dev
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to