summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorMengsk <[email protected]>2025-09-29 17:50:23 +0200
committerMengsk <[email protected]>2025-09-30 15:51:50 +0200
commit5d179c255bdfa5d2639c68638d593446a46a1e30 (patch)
tree20b104f20d3b43fdd36a255d143955a53f83c116 /src
parent8f9eee6a811350eb7b8f0bcf26fdde342a53ac8f (diff)
Update TUD_AUDIO_EP_SIZE macro
Signed-off-by: Mengsk <[email protected]>
Diffstat (limited to 'src')
-rw-r--r--src/device/usbd.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/device/usbd.h b/src/device/usbd.h
index 0487518cf..184cfea5e 100644
--- a/src/device/usbd.h
+++ b/src/device/usbd.h
@@ -703,8 +703,8 @@ bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_requ
TUD_AUDIO20_DESC_STD_AS_ISO_FB_EP(/*_ep*/ _epfb, /*_epsize*/ _epfbsize, /*_interval*/ 1)
// Calculate wMaxPacketSize of Endpoints
-#define TUD_AUDIO_EP_SIZE(_maxFrequency, _nBytesPerSample, _nChannels) \
- ((((_maxFrequency + (TUD_OPT_HIGH_SPEED ? 7999 : 999)) / (TUD_OPT_HIGH_SPEED ? 8000 : 1000)) + 1) * _nBytesPerSample * _nChannels)
+#define TUD_AUDIO_EP_SIZE(_is_highspeed, _maxFrequency, _nBytesPerSample, _nChannels) \
+ ((((_maxFrequency + (_is_highspeed ? 7999 : 999)) / (_is_highspeed ? 8000 : 1000)) + 1) * _nBytesPerSample * _nChannels)
//--------------------------------------------------------------------+