Orjan Friberg wrote: > > The thing that puzzles me is how iso_frame_desc is set up in > usbout_start and usbout_prepare_desc. transfer_buffer_length is set to > 50, and number_of_packets is 5. But iso_frame_desc[i].length is set to > 8 for 0 <= i <= 4 (and iso_frame_desc[i].offset is i * 8), for a total > of 5 * 8 = 40 bytes. 10 bytes unaccounted for if you ask me. Obviously > I'm missing something in this equation, but I can't figure out what.
Ok, I think I got it: only the first 40 bytes are supposed to be sent. Why the transfer buffer is 50 bytes is still a mystery to me though. Another thing that puzzles me is that usb_audio_write sends 1024 bytes by doing 26 usb_submit_urb. I would therefore expect the last urb to have number_of_packets set to 3, at 8 bytes each, but all urbs seem to be formatted as 5 isoc packets at 8 bytes (at least according to my printks). (Minus a couple of interrupts too many, isoc out seems to be working with the audio.c driver now.) -- Orjan Friberg Axis Communications AB _______________________________________________ [EMAIL PROTECTED] To unsubscribe, use the last form field at: https://lists.sourceforge.net/lists/listinfo/linux-usb-devel