50 lines
1.9 KiB

# --- SDE-COPYRIGHT-NOTE-BEGIN ---
# This copyright note is auto-generated by ./scripts/Create-CopyPatch.
#
# Filename: package/.../alsa-driver/devfs.patch.2.2
# Copyright (C) 2004 - 2006 The T2 SDE Project
# Copyright (C) 1998 - 2004 Clifford Wolf
#
# More information can be found in the files COPYING and README.
#
# This patch file is dual-licensed. It is available under the license the
# patched project is licensed under, as long as it is an OpenSource license
# as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
# of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
# --- SDE-COPYRIGHT-NOTE-END ---
diff -ruN alsa-driver-0.9.0beta1/kernel/sound.c alsa-driver/kernel/sound.c
--- kernel/sound.c Thu Feb 15 00:05:41 2001
+++ kernel/sound.c Sun Feb 25 06:11:40 2001
@@ -305,7 +305,7 @@
return err;
#endif
#ifdef CONFIG_DEVFS_FS
- devfs_handle = devfs_mk_dir(NULL, "snd", NULL);
+ devfs_handle = devfs_mk_dir(NULL, "snd", 0, NULL);
if (devfs_register_chrdev(snd_major, "alsa", &snd_fops)) {
#else
if (register_chrdev(snd_major, "alsa", &snd_fops)) {
@@ -357,7 +357,7 @@
for (controlnum = 0; controlnum < snd_cards_limit; controlnum++) {
sprintf(controlname, "snd/controlC%d", controlnum);
- master = devfs_find_handle(NULL, controlname, 0, 0, DEVFS_SPECIAL_CHR, 0);
+ master = devfs_find_handle(NULL, controlname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
devfs_unregister(master);
}
#endif
--- kernel/info.c Thu Feb 15 15:17:41 2001
+++ kernel/info.c Sun Feb 25 06:13:33 2001
@@ -921,7 +921,7 @@
#ifdef CONFIG_DEVFS_FS
if (entry->p && strncmp(entry->name, "controlD", 8)) {
sprintf(dname, "snd/%s", entry->name);
- master = devfs_find_handle(NULL, dname, 0, 0, DEVFS_SPECIAL_CHR, 0);
+ master = devfs_find_handle(NULL, dname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
devfs_unregister(master);
}
#endif