summaryrefslogtreecommitdiff
path: root/src/device
diff options
context:
space:
mode:
authorhathach <[email protected]>2019-07-05 16:46:11 +0700
committerhathach <[email protected]>2019-07-05 16:46:11 +0700
commit216ccc6e93fe294e80bb17bfb873bfb00f5ac038 (patch)
tree0a618b17523842b125b867d73e45b3ea7fb11c1f /src/device
parentf16ebd512bbaed3971a6e5a28168413279abf4c4 (diff)
midi only use audio 1.0 without IAD
Diffstat (limited to 'src/device')
-rw-r--r--src/device/usbd.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index d3a5dce66..bb9c62f2f 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -174,14 +174,12 @@ TU_ATTR_WEAK void tud_resume_cb(void);
//------------- MIDI -------------//
// Length of template descriptor (96 bytes)
-#define TUD_MIDI_DESC_LEN (8 + 9 + 9 + 9 + 7 + 6 + 6 + 9 + 9 + 7 + 5 + 7 + 5)
+#define TUD_MIDI_DESC_LEN (9 + 9 + 9 + 7 + 6 + 6 + 9 + 9 + 7 + 5 + 7 + 5)
// MIDI simple descriptor
// - 1 Embedded Jack In connected to 1 External Jack Out
// - 1 Embedded Jack out connected to 1 External Jack In
#define TUD_MIDI_DESCRIPTOR(_itfnum, _stridx, _epin, _epout, _epsize) \
- /* Interface Associate */\
- 8, TUSB_DESC_INTERFACE_ASSOCIATION, _itfnum, 2, TUSB_CLASS_AUDIO, 0x00, AUDIO_PROTOCOL_V1, 0,\
/* Audio Control (AC) Interface */\
9, TUSB_DESC_INTERFACE, _itfnum, 0, 0, TUSB_CLASS_AUDIO, AUDIO_SUBCLASS_CONTROL, AUDIO_PROTOCOL_V1, _stridx,\
/* AC Header */\