Re: [linux-usb-devel] buffers for USB data

2005-09-12 Thread Istvan De
Hi, > > however, what if I > > allocate > > a 128byte buffer just for the sake of this example, and submit URBs with > > 64 byte transfer buffers. > > I hope you're speaking only theoretically. A 64-byte transfer buffer is yes, of course, I'm working currently with 5 ms buffers > > For the fi

[linux-usb-devel] buffers for USB data

2005-09-12 Thread Istvan De
Hi, How do you implement buffers for streaming USB data in a kernel driver? For me, ring buffers would be an obvious choice, however, what if I allocate a 128byte buffer just for the sake of this example, and submit URBs with 64 byte transfer buffers. For the first bulk IN transfer, the 64 byte a

Re: [linux-usb-devel] bidirectional BULK transfers, how?

2005-09-08 Thread Istvan De
Hi, > Yes. You can do as many simultaneous transfers as you want, and they > don't all have to be bulk -- they don't even all have to be for the same > device! Thank you, that's very good news ;) > > Any other possibilities for simultaneous transfer apart from a kernel > > driver using URBs?

[linux-usb-devel] bidirectional BULK transfers, how?

2005-09-07 Thread Istvan De
Hi, As it turned out, libusb is not thread safe and I cannot simultaneously BULK read and write to my USB2.0/Full Speed device. I've looked at devio.c (the code which is responsible for direct IOCTL calls of usbdevfs), but couldnt really conclude anything about it.. maybe using the USBDEVFS_SUBMI

[linux-usb-devel] CDC-ACM class driver/driver development

2005-08-27 Thread Istvan De
Hello, I'm developing a USB2.0/Full Speed (12MBit) audio device for Linux which needs high speed (>256Kbyes/sec)/low delay bidirectional data transfer. To ease development I'd prefer to skip driver development by implementing some device class, which already has a driver. Currently I've made a p