Mailing List archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[linux-dvb] cx88 dvb modification



I noticed a slight difference between the cx88 and the core (saa7146-based) 
dvb drivers - the name of the device, and the i2c adaptor.

The drivers in linuxtv CVS set these to things like 
"TT-Budget/WinTV-NOVA-CI PCI". This is very handy to have a hardware 
independent way of deciding board-specfic settings in the frontends.

The cx88 however, sets these to "cx88[0]" - which is unfortunately not useful 
for the above purpose - and theres no other way of doing it. We need to be 
able to tell cards apart in the cx22702 frontend to know which tuner to use.

The attached patch sets the names to the "board name" in the cx88-dvb code.
--- video4linux-20040907-143054.orig/cx88-dvb.c	2004-09-06 15:07:00.000000000 +0100
+++ video4linux-20040907-143054/cx88-dvb.c	2004-09-09 11:25:35.509137104 +0100
@@ -213,8 +213,9 @@
 static int dvb_register(struct cx8802_dev *dev)
 {
 	int result;
-
-	result = dvb_register_adapter(&dev->core->dvb_adapter, dev->core->name,
+   
+        strlcpy(dev->core->i2c_adap.name,cx88_boards[dev->core->board].name,sizeof(dev->core->i2c_adap.name));
+	result = dvb_register_adapter(&dev->core->dvb_adapter, cx88_boards[dev->core->board].name,
 				      THIS_MODULE);
 	if (result < 0) {
 		printk(KERN_WARNING "%s: dvb_register_adapter failed (errno = %d)\n",

Home | Main Index | Thread Index