projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2921623
)
ALSA: snd-usb: Accept UAC2 FORMAT_TYPE descriptors with bLength > 6
author
Clemens Ladisch
<
[email protected]
>
Thu, 4 Aug 2011 14:17:42 +0000
(16:17 +0200)
committer
Takashi Iwai
<
[email protected]
>
Thu, 4 Aug 2011 14:23:47 +0000
(16:23 +0200)
The Focusrite Scarlett 18i6 USB has them that way, which is probably a
bug. Anyway, the driver should simply ignore this fact.
Signed-off-by: Daniel Mack <
[email protected]
>
Reported-by: Nicolai Krakowiak <
[email protected]
>
Cc:
[email protected]
Signed-off-by: Clemens Ladisch <
[email protected]
>
Signed-off-by: Takashi Iwai <
[email protected]
>
sound/usb/endpoint.c
patch
|
blob
|
history
diff --git
a/sound/usb/endpoint.c
b/sound/usb/endpoint.c
index 7c0d21ecd821b9661f78a8e59beaa30adb0b0c25..7d46e482375d1dce4247f9805d81b6fc1c6568ba 100644
(file)
--- a/
sound/usb/endpoint.c
+++ b/
sound/usb/endpoint.c
@@
-352,7
+352,7
@@
int snd_usb_parse_audio_endpoints(struct snd_usb_audio *chip, int iface_no)
continue;
}
if (((protocol == UAC_VERSION_1) && (fmt->bLength < 8)) ||
- ((protocol == UAC_VERSION_2) && (fmt->bLength
!=
6))) {
+ ((protocol == UAC_VERSION_2) && (fmt->bLength
<
6))) {
snd_printk(KERN_ERR "%d:%u:%d : invalid UAC_FORMAT_TYPE desc\n",
dev->devnum, iface_no, altno);
continue;