@@ -1629,8 +1629,6 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1629
1629
#endif
1630
1630
1631
1631
#endif
1632
- // Invoke callback - can be used to trigger data sampling if not already running
1633
- // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1634
1632
1635
1633
// Schedule first transmit if alternate interface is not zero i.e. streaming is disabled - in case no sample data is available a ZLP is loaded
1636
1634
// It is necessary to trigger this here since the refill is done with an RX FIFO empty interrupt which can only trigger if something was in there
@@ -1662,16 +1660,6 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1662
1660
#endif
1663
1661
#endif
1664
1662
1665
- #if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
1666
- // In case of asynchronous EP, call Cb after ep_fb is set
1667
- // if ( !(desc_ep->bmAttributes.sync == 0x01 && audio->ep_fb == 0) )
1668
- // {
1669
- // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1670
- // }
1671
- #else
1672
- // Invoke callback
1673
- if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1674
- #endif
1675
1663
// Prepare for incoming data
1676
1664
#if USE_LINEAR_BUFFER_RX
1677
1665
TU_VERIFY (usbd_edpt_xfer (rhport , audio -> ep_out , audio -> lin_buf_out , audio -> ep_out_sz ), false);
@@ -1688,12 +1676,6 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1688
1676
1689
1677
// Enable SOF interrupt if callback is implemented
1690
1678
if (tud_audio_feedback_interval_isr ) usbd_sof_enable (rhport , true);
1691
-
1692
- // // Invoke callback after ep_out is set
1693
- // if (audio->ep_out != 0)
1694
- // {
1695
- // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1696
- // }
1697
1679
}
1698
1680
#endif
1699
1681
#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT
@@ -1705,10 +1687,10 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1705
1687
1706
1688
TU_VERIFY (foundEPs == nEps );
1707
1689
1708
- #if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
1709
1690
// Invoke one callback for a final set interface
1710
1691
if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1711
1692
1693
+ #if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
1712
1694
// Prepare feedback computation if callback is available
1713
1695
if (tud_audio_feedback_params_cb )
1714
1696
{
0 commit comments