summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgreg@kroah.com <greg@kroah.com>2004-01-12 23:22:52 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:15 -0700
commit86673eb3edb0f23bb83f2d04ed76f0302ea39fa5 (patch)
tree35d2c58f3f0efee349faafa48948ccb15a9660ec
parent1f7148c7df35aea00f96ad52db221c0d561dbc4c (diff)
[PATCH] Add alsa device rules and a few other devfs rules.
Thanks to Libor Klepac <elkropac@students.zcu.cz> for the information
-rw-r--r--etc/udev/udev.rules8
-rw-r--r--etc/udev/udev.rules.devfs27
-rw-r--r--etc/udev/udev.rules.gentoo24
3 files changed, 58 insertions, 1 deletions
diff --git a/etc/udev/udev.rules b/etc/udev/udev.rules
index e72751656e..12c7c581ec 100644
--- a/etc/udev/udev.rules
+++ b/etc/udev/udev.rules
@@ -55,3 +55,11 @@ KERNEL="dm-[0-9]*", NAME=""
# DRI devices always go into a subdirectory (as per the LSB spec)
KERNEL="card*", NAME="dri/card%n"
+# alsa devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*", NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
+KERNEL="midi[CD0-9]*", NAME="snd/%k"
+KERNEL="timer", NAME="snd/%k"
+KERNEL="seq", NAME="snd/%k"
+
diff --git a/etc/udev/udev.rules.devfs b/etc/udev/udev.rules.devfs
index b165e0dc8b..3c45db79cf 100644
--- a/etc/udev/udev.rules.devfs
+++ b/etc/udev/udev.rules.devfs
@@ -42,5 +42,30 @@ KERNEL="radio[0-9]*", NAME="v4l/radio%n"
KERNEL="vbi[0-9]*", NAME="v4l/vbi%n"
KERNEL="vtx[0-9]*", NAME="v4l/vtx%n"
-# dm devices
+# dm devices (ignore them)
KERNEL="dm-[0-9]*", NAME=""
+
+# i2c devices
+KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
+
+# loop devices
+KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
+
+# ramdisks
+KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
+
+# framebuffer devices
+KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
+
+# misc
+KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
+KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
+
+# alsa devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*", NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
+KERNEL="midi[CD0-9]*", NAME="snd/%k"
+KERNEL="timer", NAME="snd/%k"
+KERNEL="seq", NAME="snd/%k"
+
diff --git a/etc/udev/udev.rules.gentoo b/etc/udev/udev.rules.gentoo
index 51c8bdd99d..a9c5f57bb4 100644
--- a/etc/udev/udev.rules.gentoo
+++ b/etc/udev/udev.rules.gentoo
@@ -95,3 +95,27 @@ KERNEL="radio[0-9]*", NAME="v4l/radio%n"
KERNEL="vbi[0-9]*", NAME="v4l/vbi%n"
KERNEL="vtx[0-9]*", NAME="v4l/vtx%n"
+# dm devices (ignore them)
+KERNEL="dm-[0-9]*", NAME=""
+
+# i2c devices
+KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
+
+# loop devices
+KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
+
+# framebuffer devices
+KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
+
+# misc devices
+KERNEL="rtc", NAME="misc/%k", SYMLINK="%k"
+KERNEL="psaux", NAME="misc/%k", SYMLINK="%k"
+
+# alsa devices
+KERNEL="controlC[0-9]*", NAME="snd/%k"
+KERNEL="hw[CD0-9]*", NAME="snd/%k"
+KERNEL="pcm[CD0-9cp]*", NAME="snd/%k"
+KERNEL="midi[CD0-9]*", NAME="snd/%k"
+KERNEL="timer", NAME="snd/%k"
+KERNEL="seq", NAME="snd/%k"
+