sound: usb-audio: handle wMaxPacketSize for FIXED_ENDPOINT devices
authorClemens Ladisch <clemens@ladisch.de>
Fri, 6 Feb 2009 07:13:07 +0000 (08:13 +0100)
committerGreg Kroah-Hartman <gregkh@suse.de>
Thu, 12 Feb 2009 17:31:03 +0000 (09:31 -0800)
commit6106d9f94e0cf107af83b6514b1b193233314a33
tree6d2c1800e36c329ce6df4e401fb3e1a73135dbe3
parent2bba098bf6965d597db52ba6e377413b4cc24086
sound: usb-audio: handle wMaxPacketSize for FIXED_ENDPOINT devices

commit 894dcd78782842924527598b0b764c9b4e679e21 upstream.

For audio devices that do not have proper audio descriptors (e.g.,
Edirol UA-20), we use hardcoded parameters from our quirks list.
However, we must still read the maximum packet size from the standard
endpoint descriptor; otherwise, we might use packets that are too big
and therefore rejected by the USB core.

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