]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: usb-audio: make buffer pointer based on bytes instead on frames
authorClemens Ladisch <clemens@ladisch.de>
Sun, 27 Dec 2009 17:19:57 +0000 (12:19 -0500)
committerTakashi Iwai <tiwai@suse.de>
Mon, 28 Dec 2009 11:29:46 +0000 (12:29 +0100)
commit0417e6f7caf364e06da7d1e6ba8b4508d067ab30
tree3ffd8362dc56b49bce34f6bcb3196c9d75f7515d
parenta230a9a4da920f7c0cd856e969decfea9afca0c9
ALSA: usb-audio: make buffer pointer based on bytes instead on frames

Since there are devices that do not align the size of their data packets
to frame boundaries, the driver needs to be able to keep track of
partial frames.  This patch prepares for support for such devices by
changing the hwptr_done variable from a frame counter to a byte counter.

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