summaryrefslogtreecommitdiffstats
path: root/init
diff options
context:
space:
mode:
authorXiaopeng Yang <xiaopeng.yang@windriver.com>2008-11-25 16:20:07 -0800
committerBrian Swetland <swetland@google.com>2008-12-02 17:54:51 -0800
commit5bb44c8ea2bc513fefc526918980ab3d17494ecc (patch)
treeff209dc65191605eb3449956fcbaff5b5f32737e /init
parent7186a800c0d804560863f0e89702ee90101a574b (diff)
downloadsystem_core-5bb44c8ea2bc513fefc526918980ab3d17494ecc.zip
system_core-5bb44c8ea2bc513fefc526918980ab3d17494ecc.tar.gz
system_core-5bb44c8ea2bc513fefc526918980ab3d17494ecc.tar.bz2
Create sound device nodes in /dev/snd/.
Diffstat (limited to 'init')
-rw-r--r--init/devices.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/init/devices.c b/init/devices.c
index a805237..35cd30d 100644
--- a/init/devices.c
+++ b/init/devices.c
@@ -127,6 +127,7 @@ static struct perms_ devperms[] = {
{ "/dev/qmi1", 0640, AID_RADIO, AID_RADIO, 0 },
{ "/dev/qmi2", 0640, AID_RADIO, AID_RADIO, 0 },
{ "/dev/htc-acoustic", 0640, AID_RADIO, AID_RADIO, 0 },
+ { "/dev/snd/", 0664, AID_SYSTEM, AID_AUDIO, 1 },
{ NULL, 0, 0, 0, 0 },
};
@@ -383,6 +384,9 @@ static void handle_device_event(struct uevent *uevent)
} else if(!strncmp(uevent->path, "/class/mtd/", 11)) {
base = "/dev/mtd/";
mkdir(base, 0755);
+ } else if(!strncmp(uevent->subsystem, "sound", 5)) {
+ base = "/dev/snd/";
+ mkdir(base, 0755);
} else if(!strncmp(uevent->path, "/class/misc/", 12) &&
!strncmp(name, "log_", 4)) {
base = "/dev/log/";