[alsa-devel] Use of start_frame in usbusx2yaudio.c
sarah.a.sharp at linux.intel.com
Wed May 12 07:10:58 CEST 2010
Are there any drivers in the kernel that set urb->start_frame on every
Could those drivers handle it if only the first URB they submitted to
the host controller was scheduled for that frame ID, and all the rest of
the URBs were scheduled ASAP?
I see there are three drivers that set start_frame (while not setting
I'm not really sure what usbusx2yaudio.c is doing. I think when one URB
completes, it sets the next URB's start_frame to the previous URB's
start_frame plus the number of URBs (2 by default) times the number of
packets (4 by default). Isn't this basically like setting URB_ISO_ASAP?
I really can't tell what fall back method is if this submission fails.
What is usbusx2yaudio.c attempting to do? I've tried to get an overall
picture of what it expects the isochronous scheduling to look like, but
I'm finding the driver a bit hard to read.
I'm not too worried about the other two drivers. The code in st5481_d.c
seems to fall back fine to URB_ISO_ASAP if the submission with the
start_frame set failed. devio.c is usbfs, and I can't tell what
userspace drivers do. (It could be argued that if they needed such tight
control over isoc, they should have written a kernel driver.)
More information about the Alsa-devel