sound: usb-audio: fix queue length check for high speed devices
authorClemens Ladisch <clemens@ladisch.de>
Mon, 2 Mar 2009 11:06:28 +0000 (12:06 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 2 Mar 2009 13:50:01 +0000 (14:50 +0100)
commitb1c86bb807448701400abc6eb8e958475ab5424b
tree7673a17d82c20f5bc1824c17bc2cb1a0c05004ea
parenteab2b553c3d3ed20698c4a9c7e049a60b804e2f5
sound: usb-audio: fix queue length check for high speed devices

When checking for the maximum queue length, we have to take into account
that MAX_QUEUE is measured in milliseconds (i.e., frames) while the unit
of urb_packs is whatever data packet interval the device uses (possibly
less than one frame when using high speed devices).

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/usbaudio.c