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.

54 lines
2.1 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 - 2003 Clifford Wolf
  10. #
  11. # This program is free software; you can redistribute it and/or modify
  12. # it under the terms of the GNU General Public License as published by
  13. # the Free Software Foundation; either version 2 of the License, or
  14. # (at your option) any later version. A copy of the GNU General Public
  15. # License can be found at Documentation/COPYING.
  16. #
  17. # Many people helped and are helping developing ROCK Linux. Please
  18. # have a look at http://www.rocklinux.org/ and the Documentation/TEAM
  19. # file for details.
  20. #
  21. # --- ROCK-COPYRIGHT-NOTE-END ---
  22. diff -ruN alsa-driver-0.9.0beta1/kernel/sound.c alsa-driver/kernel/sound.c
  23. --- kernel/sound.c Thu Feb 15 00:05:41 2001
  24. +++ kernel/sound.c Sun Feb 25 06:11:40 2001
  25. @@ -305,7 +305,7 @@
  26. return err;
  27. #endif
  28. #ifdef CONFIG_DEVFS_FS
  29. - devfs_handle = devfs_mk_dir(NULL, "snd", NULL);
  30. + devfs_handle = devfs_mk_dir(NULL, "snd", 0, NULL);
  31. if (devfs_register_chrdev(snd_major, "alsa", &snd_fops)) {
  32. #else
  33. if (register_chrdev(snd_major, "alsa", &snd_fops)) {
  34. @@ -357,7 +357,7 @@
  35. for (controlnum = 0; controlnum < snd_cards_limit; controlnum++) {
  36. sprintf(controlname, "snd/controlC%d", controlnum);
  37. - master = devfs_find_handle(NULL, controlname, 0, 0, DEVFS_SPECIAL_CHR, 0);
  38. + master = devfs_find_handle(NULL, controlname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
  39. devfs_unregister(master);
  40. }
  41. #endif
  42. --- kernel/info.c Thu Feb 15 15:17:41 2001
  43. +++ kernel/info.c Sun Feb 25 06:13:33 2001
  44. @@ -921,7 +921,7 @@
  45. #ifdef CONFIG_DEVFS_FS
  46. if (entry->p && strncmp(entry->name, "controlD", 8)) {
  47. sprintf(dname, "snd/%s", entry->name);
  48. - master = devfs_find_handle(NULL, dname, 0, 0, DEVFS_SPECIAL_CHR, 0);
  49. + master = devfs_find_handle(NULL, dname, 0, 0, 0, DEVFS_SPECIAL_CHR, 0);
  50. devfs_unregister(master);
  51. }
  52. #endif