Change AUDIO_PROTOCOL_V1 to AUDIO_FUNC_PROTOCOL_CODE_UNDEF in midi.c.
The USB specification does not define any AUDIO_PROTOCOL_V1!
This commit is contained in:
		@@ -302,7 +302,7 @@ uint16_t midid_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint
 | 
			
		||||
  // 1st Interface is Audio Control v1
 | 
			
		||||
  TU_VERIFY(TUSB_CLASS_AUDIO                      == desc_itf->bInterfaceClass    &&
 | 
			
		||||
            AUDIO_SUBCLASS_CONTROL                == desc_itf->bInterfaceSubClass &&
 | 
			
		||||
            AUDIO_PROTOCOL_V1      == desc_itf->bInterfaceProtocol, 0);
 | 
			
		||||
            AUDIO_FUNC_PROTOCOL_CODE_UNDEF        == desc_itf->bInterfaceProtocol, 0);
 | 
			
		||||
 | 
			
		||||
  uint16_t drv_len = tu_desc_len(desc_itf);
 | 
			
		||||
  uint8_t const * p_desc = tu_desc_next(desc_itf);
 | 
			
		||||
@@ -320,7 +320,7 @@ uint16_t midid_open(uint8_t rhport, tusb_desc_interface_t const * desc_itf, uint
 | 
			
		||||
 | 
			
		||||
  TU_VERIFY(TUSB_CLASS_AUDIO                      == desc_midi->bInterfaceClass    &&
 | 
			
		||||
            AUDIO_SUBCLASS_MIDI_STREAMING         == desc_midi->bInterfaceSubClass &&
 | 
			
		||||
            AUDIO_PROTOCOL_V1             == desc_midi->bInterfaceProtocol, 0);
 | 
			
		||||
            AUDIO_FUNC_PROTOCOL_CODE_UNDEF        == desc_midi->bInterfaceProtocol, 0);
 | 
			
		||||
 | 
			
		||||
  // Find available interface
 | 
			
		||||
  midid_interface_t * p_midi = NULL;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user