mirror of
https://github.com/hathach/tinyusb.git
synced 2025-01-17 05:32:55 +08:00
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:
parent
505ee0c8ea
commit
74ca1894de
@ -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)
|
||||
{
|
||||
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)
|
||||
|
Loading…
x
Reference in New Issue
Block a user