diff mbox

em28xx DVB modeswitching change: call for testers

Message ID 4AE5E481.8010805@iki.fi (mailing list archive)
State RFC
Headers show

Commit Message

Antti Palosaari Oct. 26, 2009, 6:03 p.m. UTC
None
diff mbox

Patch

diff -r 6702a0527680 linux/drivers/media/video/em28xx/em28xx-core.c
--- a/linux/drivers/media/video/em28xx/em28xx-core.c	Tue Oct 13 23:44:09 2009 -0400
+++ b/linux/drivers/media/video/em28xx/em28xx-core.c	Mon Oct 26 19:53:37 2009 +0200
@@ -32,7 +32,7 @@ 
 
 /* #define ENABLE_DEBUG_ISOC_FRAMES */
 
-static unsigned int core_debug;
+static unsigned int core_debug = -1;
 module_param(core_debug, int, 0644);
 MODULE_PARM_DESC(core_debug, "enable debug messages [core]");
 
@@ -41,7 +41,7 @@ 
 		printk(KERN_INFO "%s %s :"fmt, \
 			 dev->name, __func__ , ##arg); } while (0)
 
-static unsigned int reg_debug;
+static unsigned int reg_debug = -1;
 module_param(reg_debug, int, 0644);
 MODULE_PARM_DESC(reg_debug, "enable debug messages [URB reg]");
 
@@ -817,6 +817,12 @@ 
 int em28xx_gpio_set(struct em28xx *dev, struct em28xx_reg_seq *gpio)
 {
 	int rc = 0;
+	int r01, r5d;
+
+	r01 = em28xx_read_reg(dev, 0x01);
+	r5d = em28xx_read_reg(dev, 0x5d);
+	printk(KERN_INFO "%s: r01:0x%x r5d:0x%x\n", __func__, r01, r5d);
+//	printk(KERN_INFO "Em28xx: Initialized (%s) extension\n", ops->name);
 
 	if (!gpio)
 		return rc;
diff -r 6702a0527680 linux/drivers/media/video/em28xx/em28xx-dvb.c
--- a/linux/drivers/media/video/em28xx/em28xx-dvb.c	Tue Oct 13 23:44:09 2009 -0400
+++ b/linux/drivers/media/video/em28xx/em28xx-dvb.c	Mon Oct 26 19:53:37 2009 +0200
@@ -40,7 +40,7 @@ 
 MODULE_AUTHOR("Mauro Carvalho Chehab <mchehab@infradead.org>");
 MODULE_LICENSE("GPL");
 
-static unsigned int debug;
+static unsigned int debug = 1;
 module_param(debug, int, 0644);
 MODULE_PARM_DESC(debug, "enable debug messages [dvb]");
 
@@ -48,7 +48,7 @@ 
 
 #define dprintk(level, fmt, arg...) do {			\
 if (debug >= level) 						\
-	printk(KERN_DEBUG "%s/2-dvb: " fmt, dev->name, ## arg);	\
+	printk(KERN_INFO "%s/2-dvb: " fmt, dev->name, ## arg);	\
 } while (0)
 
 #define EM28XX_DVB_NUM_BUFS 5