mirror of the now-defunct rocklinux.org
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

51 lines
2.0 KiB

  1. # --- ROCK-COPYRIGHT-NOTE-BEGIN ---
  2. #
  3. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  4. # Please add additional copyright information _after_ the line containing
  5. # the ROCK-COPYRIGHT-NOTE-END tag. Otherwise it might get removed by
  6. # the ./scripts/Create-CopyPatch script. Do not edit this copyright text!
  7. #
  8. # ROCK Linux: rock-src/package/base/alsa-driver/devfs.patch.2.2
  9. # ROCK Linux is Copyright (C) 1998 - 2006 Clifford Wolf
  10. #
  11. # This patch file is dual-licensed. It is available under the license the
  12. # patched project is licensed under, as long as it is an OpenSource license
  13. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  14. # of the GNU General Public License as published by the Free Software
  15. # Foundation; either version 2 of the License, or (at your option) any later
  16. # version.
  17. #
  18. # --- ROCK-COPYRIGHT-NOTE-END ---
  19. diff -ruN alsa-driver-0.9.0beta1/kernel/sound.c alsa-driver/kernel/sound.c
  20. --- kernel/sound.c Thu Feb 15 00:05:41 2001
  21. +++ kernel/sound.c Sun Feb 25 06:11:40 2001
  22. @@ -305,7 +305,7 @@
  23. return err;
  24. #endif
  25. #ifdef CONFIG_DEVFS_FS
  26. - devfs_handle = devfs_mk_dir(NULL, "snd", NULL);
  27. + devfs_handle = devfs_mk_dir(NULL, "snd", 0, NULL);
  28. if (devfs_register_chrdev(snd_major, "alsa", &snd_fops)) {
  29. #else
  30. if (register_chrdev(snd_major, "alsa", &snd_fops)) {
  31. @@ -357,7 +357,7 @@
  32. for (controlnum = 0; controlnum < snd_cards_limit; controlnum++) {
  33. sprintf(controlname, "snd/controlC%d", controlnum);
  34. - master = devfs_find_handle(NULL, controlname, 0, 0, DEVFS_SPECIAL_CHR, 0);
  35. + master = devfs_find_handle(NULL, controlname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
  36. devfs_unregister(master);
  37. }
  38. #endif
  39. --- kernel/info.c Thu Feb 15 15:17:41 2001
  40. +++ kernel/info.c Sun Feb 25 06:13:33 2001
  41. @@ -921,7 +921,7 @@
  42. #ifdef CONFIG_DEVFS_FS
  43. if (entry->p && strncmp(entry->name, "controlD", 8)) {
  44. sprintf(dname, "snd/%s", entry->name);
  45. - master = devfs_find_handle(NULL, dname, 0, 0, DEVFS_SPECIAL_CHR, 0);
  46. + master = devfs_find_handle(NULL, dname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
  47. devfs_unregister(master);
  48. }
  49. #endif