config.h 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. /*
  2. * Line6 Linux USB driver - 0.8.0
  3. *
  4. * Copyright (C) 2004-2009 Markus Grabner (grabner@icg.tugraz.at)
  5. *
  6. * This program is free software; you can redistribute it and/or
  7. * modify it under the terms of the GNU General Public License as
  8. * published by the Free Software Foundation, version 2.
  9. *
  10. */
  11. #ifndef CONFIG_H
  12. #define CONFIG_H
  13. #ifdef CONFIG_USB_DEBUG
  14. #define DEBUG 1
  15. #endif
  16. /*
  17. * Development tools.
  18. */
  19. #define DO_DEBUG_MESSAGES 0
  20. #define DO_DUMP_URB_SEND DO_DEBUG_MESSAGES
  21. #define DO_DUMP_URB_RECEIVE DO_DEBUG_MESSAGES
  22. #define DO_DUMP_PCM_SEND 0
  23. #define DO_DUMP_PCM_RECEIVE 0
  24. #define DO_DUMP_MIDI_SEND DO_DEBUG_MESSAGES
  25. #define DO_DUMP_MIDI_RECEIVE DO_DEBUG_MESSAGES
  26. #define DO_DUMP_ANY (DO_DUMP_URB_SEND || DO_DUMP_URB_RECEIVE || \
  27. DO_DUMP_PCM_SEND || DO_DUMP_PCM_RECEIVE || \
  28. DO_DUMP_MIDI_SEND || DO_DUMP_MIDI_RECEIVE)
  29. #define CREATE_RAW_FILE 0
  30. #if DO_DEBUG_MESSAGES
  31. #define CHECKPOINT printk(KERN_INFO "line6usb: %s (%s:%d)\n", \
  32. __func__, __FILE__, __LINE__)
  33. #endif
  34. #if DO_DEBUG_MESSAGES
  35. #define DEBUG_MESSAGES(x) (x)
  36. #else
  37. #define DEBUG_MESSAGES(x)
  38. #endif
  39. #endif