aboutsummaryrefslogtreecommitdiffstats
path: root/sound/last.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2005-08-15 02:22:39 -0400
committerJaroslav Kysela <perex@suse.cz>2005-08-30 02:45:41 -0400
commitb263a9bdf9394062a4fc4272ebed60de331c5490 (patch)
tree440f459eb1cd93ed015c38bf20e93e122d4a32e0 /sound/last.c
parent99250872fc619bb5b5ddddcf1c58714a774526fc (diff)
[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 <clemens@ladisch.de>
Diffstat (limited to 'sound/last.c')
0 files changed, 0 insertions, 0 deletions