summaryrefslogtreecommitdiff
path: root/sound/usb
diff options
context:
space:
mode:
authorThomas Pugliese <thomas.pugliese@gmail.com>2013-10-01 23:32:57 +0400
committerTakashi Iwai <tiwai@suse.de>2013-10-07 14:52:21 +0400
commit6d5eba5aac4ec9bba3d6b3e6425d857706d12ccb (patch)
tree562f85c3ff21fca1323724eecb42b25f2de664f8 /sound/usb
parentdf3774c5c53305eda4053d5c941bb17a2145e3c6 (diff)
downloadlinux-6d5eba5aac4ec9bba3d6b3e6425d857706d12ccb.tar.xz
ALSA: usb-audio: support wireless devices in snd_usb_parse_datainterval
This patch adds support for dev speed USB_SPEED_WIRELESS in snd_usb_parse_datainterval which allows the usb sound core to create ISO urbs with the correct number and size of buffers. Signed-off-by: Thomas Pugliese <thomas.pugliese@gmail.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'sound/usb')
-rw-r--r--sound/usb/helper.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/sound/usb/helper.c b/sound/usb/helper.c
index 620902463c6e..51ed1ac825fd 100644
--- a/sound/usb/helper.c
+++ b/sound/usb/helper.c
@@ -118,6 +118,7 @@ unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip,
{
switch (snd_usb_get_speed(chip->dev)) {
case USB_SPEED_HIGH:
+ case USB_SPEED_WIRELESS:
case USB_SPEED_SUPER:
if (get_endpoint(alts, 0)->bInterval >= 1 &&
get_endpoint(alts, 0)->bInterval <= 4)