[ALSA] usb-audio: optimize handling of capture URBs
authorClemens Ladisch <clemens@ladisch.de>
Mon, 15 Aug 2005 06:22:39 +0000 (08:22 +0200)
committerJaroslav Kysela <perex@suse.cz>
Tue, 30 Aug 2005 06:45:41 +0000 (08:45 +0200)
USB generic driver
When preparing capture URBs, we don't need to stop when we cross a
period boundary because we now never handle more than one millisecond of
data per URB anyway.

When handling captured data, use an extra flag to call
snd_pcm_period_elapsed() no more than once.  This allows us to move the
period boundary checking code before the copying of the data which
avoids a second locking of the substream's lock.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>

No differences found