瀏覽代碼

Add check for Roland's vendor specific MIDI descriptor

main
PaulStoffregen 5 年之前
父節點
當前提交
00d784b69f
共有 1 個文件被更改,包括 3 次插入0 次删除
  1. +3
    -0
      midi.cpp

+ 3
- 0
midi.cpp 查看文件

@@ -126,6 +126,9 @@ bool MIDIDevice::claim(Device_t *dev, int type, const uint8_t *descriptors, uint
} else if (subtype == 4) {
// Element Descriptor, midi 1.0, page 23-24
println(" MIDI Element (ignored)");
} else if (subtype == 0xF1 && p[3] == 2) {
// see Linux sound/usb/quirks.c create_roland_midi_quirk()
println(" Roland vendor-specific (ignored)");
} else {
return false; // unknown
}

Loading…
取消
儲存