diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2007-08-19 05:08:58 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2007-10-09 21:05:42 -0400 |
commit | 1aa32c2ffd146dddd76babf842e998502f1b993a (patch) | |
tree | d19c6b10cc00211bc4144db68c528fcb6f95fffc /drivers/media/video/ivtv/ivtv-driver.c | |
parent | 313e91e824c0c595dec3740c0c87f55eea6bdb3f (diff) |
V4L/DVB (6055): ivtv: improve debug messages
- add FILE debug flag for open/close/read/write/poll.
- show cmd for encoder/decoder command ioctl.
Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/ivtv/ivtv-driver.c')
-rw-r--r-- | drivers/media/video/ivtv/ivtv-driver.c | 18 |
1 files changed, 14 insertions, 4 deletions
diff --git a/drivers/media/video/ivtv/ivtv-driver.c b/drivers/media/video/ivtv/ivtv-driver.c index 3591518ed358..93ddea49f0ed 100644 --- a/drivers/media/video/ivtv/ivtv-driver.c +++ b/drivers/media/video/ivtv/ivtv-driver.c | |||
@@ -186,8 +186,18 @@ MODULE_PARM_DESC(pal, "Set PAL standard: B, G, H, D, K, I, M, N, Nc, 60"); | |||
186 | MODULE_PARM_DESC(secam, "Set SECAM standard: B, G, H, D, K, L, LC"); | 186 | MODULE_PARM_DESC(secam, "Set SECAM standard: B, G, H, D, K, L, LC"); |
187 | MODULE_PARM_DESC(ntsc, "Set NTSC standard: M, J, K"); | 187 | MODULE_PARM_DESC(ntsc, "Set NTSC standard: M, J, K"); |
188 | MODULE_PARM_DESC(debug, | 188 | MODULE_PARM_DESC(debug, |
189 | "Debug level (bitmask). Default: errors only\n" | 189 | "Debug level (bitmask). Default: 0\n" |
190 | "\t\t\t(debug = 1023 gives full debugging)"); | 190 | "\t\t\t 1/0x0001: warning\n" |
191 | "\t\t\t 2/0x0002: info\n" | ||
192 | "\t\t\t 4/0x0004: mailbox\n" | ||
193 | "\t\t\t 8/0x0008: ioctl\n" | ||
194 | "\t\t\t 16/0x0010: file\n" | ||
195 | "\t\t\t 32/0x0020: dma\n" | ||
196 | "\t\t\t 64/0x0040: irq\n" | ||
197 | "\t\t\t 128/0x0080: decoder\n" | ||
198 | "\t\t\t 256/0x0100: yuv\n" | ||
199 | "\t\t\t 512/0x0200: i2c\n" | ||
200 | "\t\t\t1024/0x0400: high volume\n"); | ||
191 | MODULE_PARM_DESC(ivtv_pci_latency, | 201 | MODULE_PARM_DESC(ivtv_pci_latency, |
192 | "Change the PCI latency to 64 if lower: 0 = No, 1 = Yes,\n" | 202 | "Change the PCI latency to 64 if lower: 0 = No, 1 = Yes,\n" |
193 | "\t\t\tDefault: Yes"); | 203 | "\t\t\tDefault: Yes"); |
@@ -1354,9 +1364,9 @@ static int module_start(void) | |||
1354 | return -1; | 1364 | return -1; |
1355 | } | 1365 | } |
1356 | 1366 | ||
1357 | if (ivtv_debug < 0 || ivtv_debug > 1023) { | 1367 | if (ivtv_debug < 0 || ivtv_debug > 2047) { |
1358 | ivtv_debug = 0; | 1368 | ivtv_debug = 0; |
1359 | printk(KERN_INFO "ivtv: Debug value must be >= 0 and <= 1023\n"); | 1369 | printk(KERN_INFO "ivtv: Debug value must be >= 0 and <= 2047\n"); |
1360 | } | 1370 | } |
1361 | 1371 | ||
1362 | if (pci_register_driver(&ivtv_pci_driver)) { | 1372 | if (pci_register_driver(&ivtv_pci_driver)) { |