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 12 #ifndef CONFIG_H 13 #define CONFIG_H 14 15 16 #ifdef CONFIG_USB_DEBUG 17 #define DEBUG 1 18 #endif 19 20 21 /* 22 * Development tools. 23 */ 24 #define DO_DEBUG_MESSAGES 0 25 #define DO_DUMP_URB_SEND DO_DEBUG_MESSAGES 26 #define DO_DUMP_URB_RECEIVE DO_DEBUG_MESSAGES 27 #define DO_DUMP_PCM_SEND 0 28 #define DO_DUMP_PCM_RECEIVE 0 29 #define DO_DUMP_MIDI_SEND DO_DEBUG_MESSAGES 30 #define DO_DUMP_MIDI_RECEIVE DO_DEBUG_MESSAGES 31 #define DO_DUMP_ANY (DO_DUMP_URB_SEND || DO_DUMP_URB_RECEIVE || \ 32 DO_DUMP_PCM_SEND || DO_DUMP_PCM_RECEIVE || \ 33 DO_DUMP_MIDI_SEND || DO_DUMP_MIDI_RECEIVE) 34 #define CREATE_RAW_FILE 0 35 36 #if DO_DEBUG_MESSAGES 37 #define CHECKPOINT printk(KERN_INFO "line6usb: %s (%s:%d)\n", \ 38 __func__, __FILE__, __LINE__) 39 #endif 40 41 #if DO_DEBUG_MESSAGES 42 #define DEBUG_MESSAGES(x) (x) 43 #else 44 #define DEBUG_MESSAGES(x) 45 #endif 46 47 48 #endif 49