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

Commit a7dee5d9 authored by Robert Wu's avatar Robert Wu
Browse files

USB MIDI: Add more info to MIDI Endpoints

Add more info to MIDI endpoint descriptors.

Bug: 266473128
Test: adb shell dumpsys usb dump-descriptors -dump-list
Change-Id: I047b542f34de97b72b429454c7592dda8c1d2884
parent 0b9b6f13
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ public final class UsbACMidi10Endpoint extends UsbACEndpoint {
                + " Length: " + getLength());
        canvas.openList();
        canvas.writeListItem("" + getNumJacks() + " Jacks.");
        for (int i = 0; i < getNumJacks(); i++) {
            canvas.writeListItem("Jack " + i + ": " + mJackIds[i]);
        }
        canvas.closeList();
    }
}
+3 −0
Original line number Diff line number Diff line
@@ -62,6 +62,9 @@ public final class UsbACMidi20Endpoint extends UsbACEndpoint {
                + " Length: " + getLength());
        canvas.openList();
        canvas.writeListItem("" + getNumGroupTerminals() + " Group Terminals.");
        for (int i = 0; i < getNumGroupTerminals(); i++) {
            canvas.writeListItem("Group Terminal " + i + ": " + mBlockIds[i]);
        }
        canvas.closeList();
    }
}