Mailing List archive

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

[linux-dvb] reload grundig_29504-401 patch



Hi, I noticed that (on a Hauppague WinTV Nova-T) if you unload and
reload the grundig_29504-401 module, it fails to detect the frontend
after the first detection.

The following patch removes this limitation.. however to do this, it has
to remove a check for an EEPROM. I unfortunately cannot locate the
datasheet for the LSI Logic L64781 chip (I can only find the L64780
which appears to have a different register set), so I'm unable to design
a better detection solution.... if someone wants to send me this
document, I can see if something better is possible.

diff -Naur dvb-kernel.ORIGINAL/linux/drivers/media/dvb/frontends/grundig_29504-401.c dvb-kernel/linux/drivers/media/dvb/frontends/grundig_29504-401.c
--- dvb-kernel.ORIGINAL/linux/drivers/media/dvb/frontends/grundig_29504-401.c	2002-12-29 22:15:54.000000000 +0000
+++ dvb-kernel/linux/drivers/media/dvb/frontends/grundig_29504-401.c	2003-01-06 23:37:47.000000000 +0000
@@ -423,9 +423,6 @@
 	struct i2c_msg msg [] = { { addr: 0x55, flags: 0, buf: b0, len: 1 },
 			   { addr: 0x55, flags: I2C_M_RD, buf: b1, len: 1 } };
 
-	if (i2c->xfer (i2c, msg, 2) == 2)   /*  probably an EEPROM... */
-		return -ENODEV;
-
 	reset_and_configure (i2c);
 
 	if (i2c->xfer (i2c, msg, 2) != 2)   /*  nothing... */

Home | Main Index | Thread Index