• Felipe F. Tonello's avatar
    usb: gadget: f_midi: pre-allocate IN requests · e1e3d7ec
    Felipe F. Tonello authored
    This patch introduces pre-allocation of IN endpoint USB requests. This
    improves on latency (requires no usb request allocation on transmit) and avoid
    several potential probles on allocating too many usb requests (which involves
    DMA pool allocation problems).
    
    This implementation also handles better multiple MIDI Gadget ports, always
    processing the last processed MIDI substream if the last USB request wasn't
    enought to handle the whole stream.
    Signed-off-by: default avatarFelipe F. Tonello <eu@felipetonello.com>
    Signed-off-by: default avatarFelipe Balbi <balbi@ti.com>
    e1e3d7ec
gmidi.c 4.96 KB