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)
commitadc8d31326c32a2a1e145ab80accbc3c6570b117
tree3ffd8362dc56b49bce34f6bcb3196c9d75f7515d
parent7d2b451e65d255427c108e990507964ac39c13ee
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