Re: isochronous URB and packet calculations for USB audio

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

 



Alan Stern wrote:
> Can you explain briefly how the snd-usb-audio driver decides how many
> URBs to submit and how many isochronous packets to use in each URB?

The default is to have 8 ms per URB (which can be adjusted with the
nrpacks module parameter) and to have enough URBs for a total queue
length of 24 ms.

These values are adjusted down if the application has configured the
period size (which is the application-visible interrupt interval) to be
smaller.

> In practice, it seems that the pipeline depth is often lower than I
> would expect.

Then the application does use a small period size.  You can check this
in /proc/asound/card*/pcm0p/sub0/hw_params.


Regards,
Clemens
--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html


[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux