diff options
Diffstat (limited to 'drivers/media/usb/gspca/gspca.h')
-rw-r--r-- | drivers/media/usb/gspca/gspca.h | 40 |
1 files changed, 18 insertions, 22 deletions
diff --git a/drivers/media/usb/gspca/gspca.h b/drivers/media/usb/gspca/gspca.h index ac62cd3b590e..c3af3212d51e 100644 --- a/drivers/media/usb/gspca/gspca.h +++ b/drivers/media/usb/gspca/gspca.h | |||
@@ -10,30 +10,26 @@ | |||
10 | #include <media/v4l2-device.h> | 10 | #include <media/v4l2-device.h> |
11 | #include <linux/mutex.h> | 11 | #include <linux/mutex.h> |
12 | 12 | ||
13 | /* compilation option */ | ||
14 | /*#define GSPCA_DEBUG 1*/ | ||
15 | 13 | ||
16 | #ifdef GSPCA_DEBUG | 14 | |
17 | /* GSPCA our debug messages */ | 15 | /* GSPCA debug codes */ |
16 | |||
17 | #define D_PROBE 1 | ||
18 | #define D_CONF 2 | ||
19 | #define D_STREAM 3 | ||
20 | #define D_FRAM 4 | ||
21 | #define D_PACK 5 | ||
22 | #define D_USBI 6 | ||
23 | #define D_USBO 7 | ||
24 | |||
18 | extern int gspca_debug; | 25 | extern int gspca_debug; |
19 | #define PDEBUG(level, fmt, ...) \ | 26 | |
20 | do { \ | 27 | |
21 | if (gspca_debug & (level)) \ | 28 | #define PDEBUG(level, fmt, ...) \ |
22 | pr_info(fmt, ##__VA_ARGS__); \ | 29 | v4l2_dbg(level, gspca_debug, &gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__) |
23 | } while (0) | 30 | |
24 | 31 | #define PERR(fmt, ...) \ | |
25 | #define D_ERR 0x01 | 32 | v4l2_err(&gspca_dev->v4l2_dev, fmt, ##__VA_ARGS__) |
26 | #define D_PROBE 0x02 | ||
27 | #define D_CONF 0x04 | ||
28 | #define D_STREAM 0x08 | ||
29 | #define D_FRAM 0x10 | ||
30 | #define D_PACK 0x20 | ||
31 | #define D_USBI 0x00 | ||
32 | #define D_USBO 0x00 | ||
33 | #define D_V4L2 0x0100 | ||
34 | #else | ||
35 | #define PDEBUG(level, fmt, ...) do {} while(0) | ||
36 | #endif | ||
37 | 33 | ||
38 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ | 34 | #define GSPCA_MAX_FRAMES 16 /* maximum number of video frame buffers */ |
39 | /* image transfers */ | 35 | /* image transfers */ |