OpenSDE Packages Database (without history before r20070)
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.

49 lines
1.9 KiB

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