I use mythtv, and this periodically opens DVB cards to check for new EIT
data. Because of this, I end up with hundreds of:
mt352_pinnacle_init called
lines in my kernel log.
The attached patch makes saa7134-dvb quieter.
Cheers,
Tim.
signed-off-by: Tim Small <tim@xxxxxxxxxxxxxxxx>
--- linux-source-2.6.20/drivers/media/video/saa7134/saa7134-dvb.c.orig 2007-03-05 15:28:36.000000000 +0000
+++ linux-source-2.6.20/drivers/media/video/saa7134/saa7134-dvb.c 2007-03-05 15:57:45.000000000 +0000
@@ -54,6 +54,15 @@
module_param(use_frontend, int, 0644);
MODULE_PARM_DESC(use_frontend,"for cards with multiple frontends (0: terrestrial, 1: satellite)");
+static int debug = 0;
+module_param(debug, int, 0644);
+MODULE_PARM_DESC(debug, "Turn on/off saa7134-dvb debugging (default:off).");
+
+#define dprintk(args...) \
+ do { if (debug) { printk(KERN_DEBUG "%s: %s()[%d]: ", KBUILD_MODNAME, __FUNCTION__, __LINE__); printk(args); } } while (0)
+
+
+
/* ------------------------------------------------------------------ */
static int pinnacle_antenna_pwr(struct saa7134_dev *dev, int on)
{
@@ -75,7 +84,7 @@
saa_setl(SAA7134_GPIO_GPSTATUS0 >> 2, (1 << 28));
udelay(10);
ok = saa_readl(SAA7134_GPIO_GPSTATUS0) & (1 << 27);
- printk("%s: %s %s\n", dev->name, __FUNCTION__,
+ dprintk("%s: %s %s\n", dev->name, __FUNCTION__,
ok ? "on" : "off");
if (!ok)
@@ -96,7 +105,7 @@
static u8 irq_cfg [] = { INTERRUPT_EN_0, 0x00, 0x00, 0x00, 0x00 };
struct saa7134_dev *dev= fe->dvb->priv;
- printk("%s: %s called\n",dev->name,__FUNCTION__);
+ dprintk("%s: %s called\n",dev->name,__FUNCTION__);
mt352_write(fe, clock_config, sizeof(clock_config));
udelay(200);
_______________________________________________
linux-dvb mailing list
linux-dvb@xxxxxxxxxxx
http://www.linuxtv.org/cgi-bin/mailman/listinfo/linux-dvb