[ALSA] usb-audio: fix packets per URB calculation for playback
authorClemens Ladisch <clemens@ladisch.de>
Fri, 12 Aug 2005 06:28:27 +0000 (08:28 +0200)
committerJaroslav Kysela <perex@suse.cz>
Tue, 30 Aug 2005 06:45:08 +0000 (08:45 +0200)
commitd6db392e9235c48bb945624798e9beede7b85b12
tree5f17b000a18f476ea296b1387150b7ff92837215
parent15a24c0778e9bdd48d8e1cf60a263837b5c30ed5
[ALSA] usb-audio: fix packets per URB calculation for playback

USB generic driver
When determining how many packets are needed for one period, we cannot
assume that all packets have their maximum size -- we always use the
nominal sample rate when sending data, and could use an even lower rate
when the endpoint uses frequency feedback.

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