@@ -1631,7 +1631,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1631
1631
1632
1632
#endif
1633
1633
// Invoke callback - can be used to trigger data sampling if not already running
1634
- if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1634
+ // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1635
1635
1636
1636
// 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
1637
1637
// 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
@@ -1665,10 +1665,10 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1665
1665
1666
1666
#if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
1667
1667
// In case of asynchronous EP, call Cb after ep_fb is set
1668
- if ( !(desc_ep -> bmAttributes .sync == 0x01 && audio -> ep_fb == 0 ) )
1669
- {
1670
- if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1671
- }
1668
+ // if ( !(desc_ep->bmAttributes.sync == 0x01 && audio->ep_fb == 0) )
1669
+ // {
1670
+ // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1671
+ // }
1672
1672
#else
1673
1673
// Invoke callback
1674
1674
if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
@@ -1693,11 +1693,11 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1693
1693
audio -> fb_n_cycles_old = 0 ;
1694
1694
#endif
1695
1695
1696
- // Invoke callback after ep_out is set
1697
- if (audio -> ep_out != 0 )
1698
- {
1699
- if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1700
- }
1696
+ // // Invoke callback after ep_out is set
1697
+ // if (audio->ep_out != 0)
1698
+ // {
1699
+ // if (tud_audio_set_itf_cb) TU_VERIFY(tud_audio_set_itf_cb(rhport, p_request));
1700
+ // }
1701
1701
}
1702
1702
#endif
1703
1703
#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT
@@ -1709,6 +1709,9 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1709
1709
1710
1710
TU_VERIFY (foundEPs == nEps );
1711
1711
1712
+ // Invoke one callback for a final set interface
1713
+ if (tud_audio_set_itf_cb ) TU_VERIFY (tud_audio_set_itf_cb (rhport , p_request ));
1714
+
1712
1715
// We are done - abort loop
1713
1716
break ;
1714
1717
}
@@ -2118,7 +2121,7 @@ void audiod_sof (uint8_t rhport, uint32_t frame_count)
2118
2121
2119
2122
// Buffer count checks ?
2120
2123
2121
- // Magic checks
2124
+ // Magic checks - where are they from?
2122
2125
if (feedback > 2949166 ){ // 45.0007 in 16.16 format
2123
2126
feedback = 2949166 ;
2124
2127
}
0 commit comments