#2125: ALSA Utilities - syntax errors in 15-alsa.rules, and controlC* files are
not put into /dev/snd.
---------------------------+------------------------------------------------
 Reporter:  Bryan Kadzban  |        Owner:  [email protected]
     Type:  task           |       Status:  new                           
 Priority:  normal         |    Milestone:  6.2                           
Component:  BOOK           |      Version:  SVN                           
 Severity:  major          |   Resolution:                                
 Keywords:  udev alsa      |  
---------------------------+------------------------------------------------
Comment (by [EMAIL PROTECTED]):

 Glad you opened a ticket, because this really needs to be fixed up.

 1. Testing equality with ==

 Obviously, these should be fixed, and I don't know why they haven't
 already been.

 2. controlC[0-9]* not moved to snd/

 That's intentional. It was decided a while back that all the node names
 for devices are decided in LFS udev-config. Even for things that aren't
 used in BLFS like device-mapper. So, really, the rest of the rules should
 be deleted because they're covered in the stock rules and shouldn't be
 changed without good reason. We really only want to add the group setting
 and alsactl stuff.

 As for not working with CLFS, I don't know what to say. I hope they would
 follow the same convention of deciding all the node names in the base
 config (in fact, they already do, adding rules for pktcdvd, device-mapper,
 etc.) Possibly this is a special case where the alsa rules have been left
 out because they have been handled by BLFS and this can be straightened
 out easily.

 And it brings up the topic made months ago that there should be a shared
 project to handle the udev rules. This should be done, but needs some
 manpower. I'll bring this up on list again soon.

 3. Pattern matching for midi

 I really don't know what the names for the midi devices are supposed to
 be. Change looks fine to me, but I don't really know.

 So, the BLFS 15-alsa.rules should probably be moved after the stock
 25-lfs.rules and simply be:

 {{{
 # Give the audio group ownership of sound devices
 SUBSYSTEM=="sound",       GROUP="audio"
 SUBSYSTEM=="snd",         GROUP="audio"

 # ALSA Devices
 # When a sound device is detected, restore the volume settings
 KERNEL=="controlC[0-9]*", ACTION=="add", RUN+="/usr/sbin/alsactl restore
 %n"
 }}}

 At least, that's what I think.

-- 
Ticket URL: <http://wiki.linuxfromscratch.org/blfs/ticket/2125>
BLFS Trac <http://wiki.linuxfromscratch.org/blfs>
Beyond Linux From Scratch
--
http://linuxfromscratch.org/mailman/listinfo/blfs-book
FAQ: http://www.linuxfromscratch.org/blfs/faq.html
Unsubscribe: See the above information page

Reply via email to