[linux-dvb] [PATCH] Multiple vp7045 DVB USB devices and lockups

Patrick Boettcher patrick.boettcher at desy.de
Fri Feb 3 10:19:38 CET 2006


Hi Tim,

On Fri, 3 Feb 2006, Tim Davies wrote:
> Is this a patch to do with multiple tuners?  I'm a little lost on the logic 
> here.

You are right. It was an old patch lying around and when writing the mail 
I was too fast.

Sorry, the attached one is the correct one. Can you check this, please?

best regards,
Patrick.

--
   Mail: patrick.boettcher at desy.de
   WWW:  http://www.wi-bw.tfh-wildau.de/~pboettch/
-------------- next part --------------
Index: linux/drivers/media/dvb/dvb-usb/vp7045-fe.c
===================================================================
RCS file: /cvs/video4linux/v4l-dvb/linux/drivers/media/dvb/dvb-usb/vp7045-fe.c,v
retrieving revision 1.4
diff -u -3 -p -r1.4 vp7045-fe.c
--- linux/drivers/media/dvb/dvb-usb/vp7045-fe.c	11 Jan 2006 19:28:02 -0000	1.4
+++ linux/drivers/media/dvb/dvb-usb/vp7045-fe.c	2 Feb 2006 11:53:58 -0000
@@ -23,10 +23,11 @@
 
 struct vp7045_fe_state {
 	struct dvb_frontend fe;
+	struct dvb_frontend_ops ops;
+
 	struct dvb_usb_device *d;
 };
 
-
 static int vp7045_fe_read_status(struct dvb_frontend* fe, fe_status_t *status)
 {
 	struct vp7045_fe_state *state = fe->demodulator_priv;
@@ -150,7 +151,8 @@ struct dvb_frontend * vp7045_fe_attach(s
 		goto error;
 
 	s->d = d;
-	s->fe.ops = &vp7045_fe_ops;
+	memcpy(&s->ops, &vp7045_fe_ops, sizeof(struct dvb_frontend_ops));
+	s->fe.ops = &s->ops;
 	s->fe.demodulator_priv = s;
 
 	goto success;


More information about the linux-dvb mailing list