Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a05a0676 authored by Kamen Kirov's avatar Kamen Kirov Committed by android-build-merger
Browse files

Merge "Fix incorrect parsing of UVC interface descriptor"

am: 74458cbd

Change-Id: Ie1359f65e2ad72c1567cd426f8eebfc24b053f46
parents 22f7e515 74458cbd
Loading
Loading
Loading
Loading
+6 −2
Original line number Diff line number Diff line
@@ -177,11 +177,15 @@ public final class UsbDescriptorParser {
             * Audio Class Specific
             */
            case UsbDescriptor.DESCRIPTORTYPE_AUDIO_INTERFACE:
                if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) {
                    descriptor = UsbACInterface.allocDescriptor(this, stream, length, type);
                }
                break;

            case UsbDescriptor.DESCRIPTORTYPE_AUDIO_ENDPOINT:
                if (mDeviceDescriptor.getDevClass() == UsbDescriptor.CLASSID_AUDIO) {
                    descriptor = UsbACEndpoint.allocDescriptor(this, length, type);
                }
                break;

            default: