From 3c1d70e5e7f4259f881dfb4a342c9e4708d5cd51 Mon Sep 17 00:00:00 2001 From: Hemant Kumar Date: Wed, 17 Jan 2018 14:53:17 -0800 Subject: [PATCH] sound: usb: Increase upper bound check for bInterval to 16 Driver currently restrict upper bound check for bInterval to 4 which corresponds to 1 ms. Fix the bInterval range check as per the USB spec for ISOC endpoint. Change-Id: I580e1fdfab0eeb1231642b920239691e7af67727 Signed-off-by: Hemant Kumar --- sound/usb/helper.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sound/usb/helper.c b/sound/usb/helper.c index 4c12cc5b53fd..3ecf459bd3e9 100644 --- a/sound/usb/helper.c +++ b/sound/usb/helper.c @@ -126,7 +126,7 @@ unsigned char snd_usb_parse_datainterval(struct snd_usb_audio *chip, case USB_SPEED_SUPER: case USB_SPEED_SUPER_PLUS: if (get_endpoint(alts, 0)->bInterval >= 1 && - get_endpoint(alts, 0)->bInterval <= 4) + get_endpoint(alts, 0)->bInterval <= 16) return get_endpoint(alts, 0)->bInterval - 1; break; default: