[patch resend] bttv panic fix

Chris Evans (chris@ferret.lmh.ox.ac.uk)
Thu, 19 Nov 1998 23:10:15 +0000 (GMT)


Hi,

Just a patch re-send. Are you the bttv maintainer or is there someone else
I should cc?

Another bttv observation. Since I upgraded from 2.1.115, the tuner no
longer hits the chanels spot on. The channels (PAL) seem detuned by about
5-10 fine tune right arrow keypresses. This is with xawtv, so I have no
idea if the problem is the new driver or the new xawtv I had to upgrade to
for the new driver.

Chris

--- bttv.c.old Sun Nov 1 22:26:37 1998
+++ bttv.c Sun Nov 1 22:28:06 1998
@@ -2610,6 +2610,12 @@
btv->grab=0;
btv->lastgrab=0;
btv->field=btv->last_field=0;
+ /* cevans - prevents panic if initialization bails due to memory
+ * alloc failures!
+ */
+ btv->video_dev.minor = -1;
+ btv->vbi_dev.minor = -1;
+ btv->radio_dev.minor = -1;

/* i2c */
memcpy(&(btv->i2c),&bttv_i2c_bus_template,sizeof(struct i2c_bus));

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/