> > > if ( buffersNotAllocated ) AllocateBuffers();            //these are my
> > > defined functions
> > > ssize_t retval = 0 ;
> > > sRead.nOffset = 0;
> > > retval=usb_bulk_msg (my_dev, usb_rcvbulkpipe
> > > (my_dev,endpoint_r),sRead.pBuff, frame_size, &count, HZ*5);
> > >  wait_for_urb (sRead.pUrb);
> >
> > Either use usb_bulk_msg() _or_ submit and wait on an URB.
> > Secondarily, you fail to handle AllocateBuffers() failing.
> >
> 
> I don't exactly understand ... Should I use usb_bulk_msg with usb_submit_urb
> ?

No, you must not. Use either usb_submit_urb() and wait
_or_ use usb_bulk_msg(). Do _not_ mix them.

        HTH
                Oliver



-------------------------------------------------------
This SF.Net email sponsored by: Free pre-built ASP.NET sites including
Data Reports, E-commerce, Portals, and Forums are available now.
Download today and enter to win an XBOX or Visual Studio .NET.
http://aspnet.click-url.com/go/psa00100003ave/direct;at.aspnet_072303_01/01
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to