sound: usb-audio: do not make URBs longer than sync packet interval
authorClemens Ladisch <clemens@ladisch.de>
Mon, 10 Aug 2009 08:07:35 +0000 (10:07 +0200)
committerTakashi Iwai <tiwai@suse.de>
Mon, 10 Aug 2009 11:13:56 +0000 (13:13 +0200)
commit765e8db078e63fdc076fcf6024c15d3b7b955746
tree2962fb6a3f4b03cf1480c122356fed0069d3bdff
parenta65dd997b3cf057f6524466cf8dfb8382c132bd5
sound: usb-audio: do not make URBs longer than sync packet interval

Using more packets in one URB do avoid interrupts does not make sense
when we have a sync pipe whose packets generate interrupts more often.
Therefore, limit the URB size to the synchronization packet interval.

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