Attached is a patch to
a. fix the "modinfo cx18" output, and
b. set debug reporting of the CX18_CPU_DE_SET_MDL mailbox api call to
require the high volume debug flag in cx18-mailbox.c:cx18_api_call()
-Andy
--- cx18-a52f6755ca2b/linux/drivers/media/video/cx18/cx18-driver.c.orig 2008-02-17 12:35:03.000000000 -0500
+++ cx18-a52f6755ca2b/linux/drivers/media/video/cx18/cx18-driver.c 2008-02-17 12:37:18.000000000 -0500
@@ -128,12 +128,12 @@ MODULE_PARM_DESC(debug,
"Debug level (bitmask). Default: 0\n"
"\t\t\t 1/0x0001: warning\n"
"\t\t\t 2/0x0002: info\n"
- "\t\t\t 4/0x0004: mailbox\n"
- "\t\t\t 8/0x0008: ioctl\n"
- "\t\t\t 16/0x0010: file\n"
- "\t\t\t 32/0x0020: dma\n"
- "\t\t\t 64/0x0040: irq\n"
- "\t\t\t128/0x0080: i2c\n"
+ "\t\t\t 4/0x0004: mailbox api\n"
+ "\t\t\t 8/0x0008: dma\n"
+ "\t\t\t 16/0x0010: ioctl\n"
+ "\t\t\t 32/0x0020: file\n"
+ "\t\t\t 64/0x0040: i2c\n"
+ "\t\t\t128/0x0080: irq\n"
"\t\t\t256/0x0100: high volume\n");
MODULE_PARM_DESC(cx18_pci_latency,
"Change the PCI latency to 64 if lower: 0 = No, 1 = Yes,\n"
--- cx18-a52f6755ca2b/linux/drivers/media/video/cx18/cx18-mailbox.c.orig 2008-02-17 12:45:19.000000000 -0500
+++ cx18-a52f6755ca2b/linux/drivers/media/video/cx18/cx18-mailbox.c 2008-02-17 12:51:45.000000000 -0500
@@ -196,7 +196,15 @@ static int cx18_api_call(struct cx18 *cx
return -EINVAL;
}
- CX18_DEBUG_API("%s\n", info->name);
+ switch (cmd) {
+ case CX18_CPU_DE_SET_MDL:
+ CX18_DEBUG_HI_API("%s\n", info->name);
+ break;
+ default:
+ CX18_DEBUG_API("%s\n", info->name);
+ break;
+ }
+
setup_page(SCB_OFFSET);
mb = cx18_mb_is_complete(cx, info->rpu, &state, &irq, &req);
_______________________________________________
ivtv-devel mailing list
[email protected]
http://ivtvdriver.org/mailman/listinfo/ivtv-devel