]> git.donarmstrong.com Git - qmk_firmware.git/commitdiff
Fixes #7256: USB descriptor to identify correctly as MIDI device. (#7258)
authorChristopher <github@phogy.com>
Tue, 5 Nov 2019 00:02:42 +0000 (01:02 +0100)
committerJoel Challis <git@zvecr.com>
Tue, 5 Nov 2019 00:02:42 +0000 (00:02 +0000)
tmk_core/protocol/usb_descriptor.c

index ffcf0957f358b8d3d0d4a80beb1e7db64a12337e..e93ce87df28cee58ca141ce02a7c13de03379959 100644 (file)
@@ -431,7 +431,7 @@ const USB_Descriptor_Configuration_t PROGMEM
 
                                       .Refresh            = 0,
                                       .SyncEndpointNumber = 0},
-            .MIDI_In_Jack_Endpoint_SPC  = {.Header = {.Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), .Type = AUDIO_DSUBTYPE_CSEndpoint_General}, .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, .TotalEmbeddedJacks = 0x01, .AssociatedJackID = {0x01}},
+            .MIDI_In_Jack_Endpoint_SPC  = {.Header = {.Size = sizeof(USB_MIDI_Descriptor_Jack_Endpoint_t), .Type = AUDIO_DTYPE_CSEndpoint}, .Subtype = AUDIO_DSUBTYPE_CSEndpoint_General, .TotalEmbeddedJacks = 0x01, .AssociatedJackID = {0x01}},
             .MIDI_Out_Jack_Endpoint     = {.Endpoint = {.Header = {.Size = sizeof(USB_Audio_Descriptor_StreamEndpoint_Std_t), .Type = DTYPE_Endpoint}, .EndpointAddress = MIDI_STREAM_IN_EPADDR, .Attributes = (EP_TYPE_BULK | ENDPOINT_ATTR_NO_SYNC | ENDPOINT_USAGE_DATA), .EndpointSize = MIDI_STREAM_EPSIZE, .PollingIntervalMS = 0x05},
 
                                        .Refresh            = 0,