blob: 8cefdbac9d22164eb6ececb4adf8006a77625cef [file] [log] [blame]
Markus Grabner705ecec2009-02-27 19:43:04 -08001/*
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
Markus Grabner705ecec2009-02-27 19:43:04 -080016#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("line6usb: %s (%s:%d)\n", __FUNCTION__, __FILE__, __LINE__)
38#endif
39
Markus Grabner705ecec2009-02-27 19:43:04 -080040#if DO_DEBUG_MESSAGES
41#define DEBUG_MESSAGES(x) (x)
42#else
43#define DEBUG_MESSAGES(x)
44#endif
45
46
47#endif