Merge "Fix incorrect parsing of UVC interface descriptor" am: 74458cbdf0
am: a05a067674
Change-Id: I55d4804312a1d127b7fff0683902e30c7fa06e90
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