@@ -305,13 +305,12 @@ typedef struct
305
305
#endif
306
306
307
307
#if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
308
-
309
308
struct {
310
- uint32_t value ; // Feedback value for asynchronous mode (in 16.16 format).
311
- uint32_t min_value ; // min value according to UAC2 FMT-2.0 section 2.3.1.1.
312
- uint32_t max_value ; // max value according to UAC2 FMT-2.0 section 2.3.1.1.
309
+ uint32_t value ; // Feedback value for asynchronous mode (in 16.16 format).
310
+ uint32_t min_value ; // min value according to UAC2 FMT-2.0 section 2.3.1.1.
311
+ uint32_t max_value ; // max value according to UAC2 FMT-2.0 section 2.3.1.1.
313
312
314
- uint8_t frame_shift ; // bInterval-1 in unit of frame (FS), micro-frame (HS)
313
+ uint8_t frame_shift ; // bInterval-1 in unit of frame (FS), micro-frame (HS)
315
314
uint8_t compute_method ;
316
315
317
316
union {
@@ -323,15 +322,17 @@ typedef struct
323
322
uint32_t mclk_freq ;
324
323
}fixed ;
325
324
325
+ #if 0 // implement later
326
326
struct {
327
327
uint32_t nominal_value ;
328
328
uint32_t threshold_bytes ;
329
329
}fifo_count ;
330
+ #endif
330
331
}compute ;
331
332
332
333
} feedback ;
333
-
334
334
#endif // CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
335
+
335
336
#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT
336
337
337
338
#if CFG_TUD_AUDIO_ENABLE_EP_IN && !CFG_TUD_AUDIO_ENABLE_ENCODING
@@ -1729,8 +1730,8 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1729
1730
set_fb_params_freq (audio , fb_param .sample_freq , fb_param .frequency .mclk_freq );
1730
1731
break ;
1731
1732
1732
- case AUDIO_FEEDBACK_METHOD_FIFO_COUNT_FIXED :
1733
- case AUDIO_FEEDBACK_METHOD_FIFO_COUNT_FLOAT :
1733
+ #if 0 // implement later
1734
+ case AUDIO_FEEDBACK_METHOD_FIFO_COUNT :
1734
1735
{
1735
1736
uint64_t fb64 = ((uint64_t ) fb_param .sample_freq ) << 16 ;
1736
1737
audio -> feedback .compute .fifo_count .nominal_value = (uint32_t ) (fb64 / frame_div );
@@ -1739,6 +1740,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const *
1739
1740
tud_audio_fb_set (audio -> feedback .compute .fifo_count .nominal_value );
1740
1741
}
1741
1742
break ;
1743
+ #endif
1742
1744
1743
1745
// nothing to do
1744
1746
default : break ;
0 commit comments