driver.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. #ifndef __SOUND_DRIVER_H
  2. #define __SOUND_DRIVER_H
  3. /*
  4. * Main header file for the ALSA driver
  5. * Copyright (c) 1994-2000 by Jaroslav Kysela <perex@suse.cz>
  6. *
  7. *
  8. * This program is free software; you can redistribute it and/or modify
  9. * it under the terms of the GNU General Public License as published by
  10. * the Free Software Foundation; either version 2 of the License, or
  11. * (at your option) any later version.
  12. *
  13. * This program is distributed in the hope that it will be useful,
  14. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  15. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  16. * GNU General Public License for more details.
  17. *
  18. * You should have received a copy of the GNU General Public License
  19. * along with this program; if not, write to the Free Software
  20. * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
  21. *
  22. */
  23. #ifdef ALSA_BUILD
  24. #include "config.h"
  25. #endif
  26. #include <linux/config.h>
  27. #define SNDRV_CARDS 8 /* number of supported soundcards - don't change - minor numbers */
  28. #ifndef CONFIG_SND_MAJOR /* standard configuration */
  29. #define CONFIG_SND_MAJOR 116
  30. #endif
  31. #ifndef CONFIG_SND_DEBUG
  32. #undef CONFIG_SND_DEBUG_MEMORY
  33. #endif
  34. #ifdef ALSA_BUILD
  35. #include "adriver.h"
  36. #endif
  37. #include <linux/module.h>
  38. /*
  39. * ==========================================================================
  40. */
  41. #ifdef CONFIG_SND_DEBUG_MEMORY
  42. #include <linux/slab.h>
  43. #include <linux/vmalloc.h>
  44. void *snd_wrapper_kmalloc(size_t, unsigned int __nocast);
  45. #undef kmalloc
  46. void snd_wrapper_kfree(const void *);
  47. #undef kfree
  48. void *snd_wrapper_vmalloc(size_t);
  49. #undef vmalloc
  50. void snd_wrapper_vfree(void *);
  51. #undef vfree
  52. #endif
  53. #endif /* __SOUND_DRIVER_H */