Magellan Linux

Diff of /tags/udev-165-r1/udev-sound-card.rules.magellan

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 884 by niro, Tue Oct 13 10:46:20 2009 UTC revision 1016 by niro, Tue Apr 6 23:46:22 2010 UTC
# Line 1  Line 1 
1  # /etc/udev/rules/78-sound-card.rules:  device naming rules for udev  # /etc/udev/rules/78-sound-card.rules:  device naming rules for udev
2  # $Header: /root/magellan-cvs/src/udev/udev-sound-card.rules.magellan,v 1.1 2009-10-13 10:46:20 niro Exp $  # $Header: /root/magellan-cvs/src/udev/udev-sound-card.rules.magellan,v 1.2 2010-04-06 23:46:22 niro Exp $
3  #  #
4  # There are a number of modifiers that are allowed to be used in some  # There are a number of modifiers that are allowed to be used in some
5  # of the different fields. They provide the following subsitutions:  # of the different fields. They provide the following subsitutions:
# Line 66  SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", EN Line 66  SUBSYSTEMS=="pci", ENV{ID_BUS}="pci", EN
66    
67  LABEL="skip_pci"  LABEL="skip_pci"
68    
69  ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}"  ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_IFACE}-$attr{id}"
70  ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}"  ENV{ID_SERIAL}=="?*", ENV{ID_IFACE}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$attr{id}"
71    
72  ENV{ID_PATH}=="", IMPORT{program}="/usr/bin/env -i /lib/udev/path_id %p/controlC%n"  ENV{ID_PATH}=="", IMPORT{program}="path_id %p/controlC%n"
73    
74  # The values used here for $SOUND_FORM_FACTOR and $SOUND_CLASS should be kept  # The values used here for $SOUND_FORM_FACTOR and $SOUND_CLASS should be kept
75  # in sync with those defined for PulseAudio's src/pulse/proplist.h  # in sync with those defined for PulseAudio's src/pulse/proplist.h
# Line 81  ATTR{pcmC%nD0p/pcm_class}=="modem", ENV{ Line 81  ATTR{pcmC%nD0p/pcm_class}=="modem", ENV{
81  # Identify cards on the internal PCI bus as internal  # Identify cards on the internal PCI bus as internal
82  SUBSYSTEMS=="pci", DEVPATH=="*/0000:00:??.?/sound/*", ENV{SOUND_FORM_FACTOR}="internal", GOTO="sound_end"  SUBSYSTEMS=="pci", DEVPATH=="*/0000:00:??.?/sound/*", ENV{SOUND_FORM_FACTOR}="internal", GOTO="sound_end"
83    
84  # Recognize good old WinTV cards as TV cards  # Recognize good old WinTV cards and those based on saa7134 as TV cards
85  SUBSYSTEMS=="pci", DRIVERS=="Bt87x", ENV{SOUND_FORM_FACTOR}="tv", GOTO="sound_end"  SUBSYSTEMS=="pci", DRIVERS=="Bt87x", ENV{SOUND_FORM_FACTOR}="tv", GOTO="sound_end"
86    SUBSYSTEMS=="pci", DRIVERS=="saa7134", ENV{SOUND_FORM_FACTOR}="tv", GOTO="sound_end"
87    
88  # Hmm, do we really want this database here?  # Hmm, do we really want this database here?
89  SUBSYSTEMS=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0311", ENV{SOUND_FORM_FACTOR}="webcam", GOTO="sound_end"  SUBSYSTEMS=="usb", ATTRS{idVendor}=="0471", ATTRS{idProduct}=="0311", ENV{SOUND_FORM_FACTOR}="webcam", GOTO="sound_end"

Legend:
Removed from v.884  
changed lines
  Added in v.1016