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

Commit a0d21df8 authored by Mayank Rana's avatar Mayank Rana
Browse files

usb: gadget: android: Use 1024 bytes as MIDI buffer size



Some UDC driver doesn't allow or throw errors when USB request buffer
queued is unaligned i.e. buffer size is not equal to wMaxPacketSize or
multiple of wMaxPacketSize. Fix this issue by using 1024 bytes as MIDI
buffer size instead of 256 bytes.

Change-Id: Ib3493f219de242be56be41d129d128facfe4a8a5
Signed-off-by: default avatarMayank Rana <mrana@codeaurora.org>
parent 628244d0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -87,7 +87,7 @@ static const char longname[] = "Gadget Android";
/* f_midi configuration */
#define MIDI_INPUT_PORTS    1
#define MIDI_OUTPUT_PORTS   1
#define MIDI_BUFFER_SIZE    256
#define MIDI_BUFFER_SIZE    1024
#define MIDI_QUEUE_LENGTH   32

struct android_usb_function {