From: Clemens Ladisch Date: Mon, 15 Aug 2005 06:22:39 +0000 (+0200) Subject: [ALSA] usb-audio: optimize handling of capture URBs X-Git-Tag: v2.6.14-rc1~1029^2~42 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b263a9bdf9394062a4fc4272ebed60de331c5490;p=pandora-kernel.git [ALSA] usb-audio: optimize handling of capture URBs 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 --- Reading git-diff-tree failed