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