|
55 | 55 | //--------------------------------------------------------------------+ |
56 | 56 | // INCLUDE |
57 | 57 | //--------------------------------------------------------------------+ |
| 58 | +#include "device/usbd.h" |
58 | 59 | #include "device/usbd_pvt.h" |
| 60 | + |
59 | 61 | #include "audio_device.h" |
60 | | -//#include "common/tusb_fifo.h" |
61 | 62 |
|
62 | 63 | //--------------------------------------------------------------------+ |
63 | 64 | // MACRO CONSTANT TYPEDEF |
@@ -548,7 +549,7 @@ static bool audiod_rx_done_cb(uint8_t rhport, audiod_function_t* audio, uint16_t |
548 | 549 | TU_VERIFY(usbd_edpt_xfer(rhport, audio->ep_out, audio->lin_buf_out, audio->ep_out_sz), false); |
549 | 550 | #else |
550 | 551 | // Data is already placed in EP FIFO, schedule for next receive |
551 | | - TU_VERIFY(usbd_edpt_iso_xfer(rhport, audio->ep_out, &audio->ep_out_ff, audio->ep_out_sz), false); |
| 552 | + TU_VERIFY(usbd_edpt_xfer_fifo(rhport, audio->ep_out, &audio->ep_out_ff, audio->ep_out_sz), false); |
552 | 553 | #endif |
553 | 554 |
|
554 | 555 | #endif |
@@ -852,7 +853,7 @@ static bool audiod_tx_done_cb(uint8_t rhport, audiod_function_t * audio) |
852 | 853 | TU_VERIFY(usbd_edpt_xfer(rhport, audio->ep_in, audio->lin_buf_in, n_bytes_tx)); |
853 | 854 | #else |
854 | 855 | // Send everything in ISO EP FIFO |
855 | | - TU_VERIFY(usbd_edpt_iso_xfer(rhport, audio->ep_in, &audio->ep_in_ff, n_bytes_tx)); |
| 856 | + TU_VERIFY(usbd_edpt_xfer_fifo(rhport, audio->ep_in, &audio->ep_in_ff, n_bytes_tx)); |
856 | 857 | #endif |
857 | 858 |
|
858 | 859 | #endif |
@@ -1611,7 +1612,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const * |
1611 | 1612 | #if USE_LINEAR_BUFFER_RX |
1612 | 1613 | TU_VERIFY(usbd_edpt_xfer(rhport, audio->ep_out, audio->lin_buf_out, audio->ep_out_sz), false); |
1613 | 1614 | #else |
1614 | | - TU_VERIFY(usbd_edpt_iso_xfer(rhport, audio->ep_out, &audio->ep_out_ff, audio->ep_out_sz), false); |
| 1615 | + TU_VERIFY(usbd_edpt_xfer_fifo(rhport, audio->ep_out, &audio->ep_out_ff, audio->ep_out_sz), false); |
1615 | 1616 | #endif |
1616 | 1617 | } |
1617 | 1618 |
|
|
0 commit comments