sound: usb-audio: limit playback queue length
authorClemens Ladisch <clemens@ladisch.de>
Mon, 26 Jan 2009 07:09:28 +0000 (08:09 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 26 Jan 2009 16:05:07 +0000 (17:05 +0100)
commit4d788e040b72d2a46ea3ba726b7fa0b65de06c88
tree8cc83947a001100f9f551bbe555322646d43f42f
parentb7eb4a06e9980973755b7e95a6d97fb8decbf8fd
sound: usb-audio: limit playback queue length

Once our URBs contain enough packets, queueing more URBs does not give
us any additional underrun protection (as we use double-buffering) but
just increases latency unnecessarily.  Therefore, we try to limit the
queue length to some reasonable value.

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