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

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

 



Yep, that seems to work nicely.  It even makes sense too :-)

Tim.


Patrick Boettcher wrote:
> 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@xxxxxxx
>   WWW:  http://www.wi-bw.tfh-wildau.de/~pboettch/
> ------------------------------------------------------------------------
>
> 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;
>   
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://www.linuxtv.org/pipermail/linux-dvb/attachments/20060203/08919ac3/attachment.htm

[Index of Archives]     [Linux Media]     [Video 4 Linux]     [Asterisk]     [Samba]     [Xorg]     [Xfree86]     [Linux USB]

  Powered by Linux