audio_device: Fix build error
ep_in_as_intf_num was incorrectly used to access out interface which is defined for 'in' interface. Code related to 'out' endpoint should use ep_out_as_intf_num instead.
This commit is contained in:
		@@ -496,7 +496,7 @@ static bool audiod_rx_done_cb(uint8_t rhport, audiod_function_t* audio, uint16_t
 | 
				
			|||||||
  if (tud_audio_rx_done_pre_read_cb || tud_audio_rx_done_post_read_cb)
 | 
					  if (tud_audio_rx_done_pre_read_cb || tud_audio_rx_done_post_read_cb)
 | 
				
			||||||
  {
 | 
					  {
 | 
				
			||||||
    idx_audio_fct = audiod_get_audio_fct_idx(audio);
 | 
					    idx_audio_fct = audiod_get_audio_fct_idx(audio);
 | 
				
			||||||
    TU_VERIFY(audiod_get_AS_interface_index(audio->ep_in_as_intf_num, audio, &idxItf, &dummy2));
 | 
					    TU_VERIFY(audiod_get_AS_interface_index(audio->ep_out_as_intf_num, audio, &idxItf, &dummy2));
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					
 | 
				
			||||||
  // Call a weak callback here - a possibility for user to get informed an audio packet was received and data gets now loaded into EP FIFO (or decoded into support RX software FIFO)
 | 
					  // Call a weak callback here - a possibility for user to get informed an audio packet was received and data gets now loaded into EP FIFO (or decoded into support RX software FIFO)
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user