Merge "Fix incorrect parsing of UVC interface descriptor"
am: 74458cbdf0
Change-Id: Ie1359f65e2ad72c1567cd426f8eebfc24b053f46
This commit is contained in:
@@ -177,11 +177,15 @@ public final class UsbDescriptorParser {
|
||||
* Audio Class Specific
|
||||
*/
|
||||
case UsbDescriptor.DESCRIPTORTYPE_AUDIO_INTERFACE:
|
||||
descriptor = UsbACInterface.allocDescriptor(this, stream, length, type);
|
||||
if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) {
|
||||
descriptor = UsbACInterface.allocDescriptor(this, stream, length, type);
|
||||
}
|
||||
break;
|
||||
|
||||
case UsbDescriptor.DESCRIPTORTYPE_AUDIO_ENDPOINT:
|
||||
descriptor = UsbACEndpoint.allocDescriptor(this, length, type);
|
||||
if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) {
|
||||
descriptor = UsbACEndpoint.allocDescriptor(this, length, type);
|
||||
}
|
||||
break;
|
||||
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user