]> git.baikalelectronics.ru Git - kernel.git/commit
[ALSA] usb-audio: double-buffer all playback data
authorClemens Ladisch <clemens@ladisch.de>
Mon, 15 Aug 2005 06:24:44 +0000 (08:24 +0200)
committerJaroslav Kysela <perex@suse.cz>
Tue, 30 Aug 2005 06:45:43 +0000 (08:45 +0200)
commit12298e40a2c934d34d46bd6a2af2e28150a3b0f5
tree9366f8d7b709cca8fa243708910783b8977919b7
parent6463fb2f148dfb82add41cde722e62cb286ba335
[ALSA] usb-audio: double-buffer all playback data

USB generic driver
We always had to use double buffering when capturing, and when playback
data for one URB crosses a buffer boundary.  The latter would make hwptr
updates less precise because the double-buffered data is read from the
buffer much earlier than the other data is read by the host controller.

Double-buffering all data allows to update hwptr immediately after the
data was copied to the USB buffer(s), which has the additional benefit
of avoiding the latency imposed by the host controller's delay of up to
one frame when interrupting.

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