From 9e2a1d2e6a22fb1cfb952a62f501403d372bbb45 Mon Sep 17 00:00:00 2001 From: Reinhard Panhuber Date: Fri, 12 Feb 2021 18:31:54 +0100 Subject: [PATCH] Fix CFG_TUD_AUDIO_EP_IN/OUT_SW_BUFFER_SIZE to be defined anyway --- src/class/audio/audio_device.h | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h index 34ba5bb55..d1d1157eb 100644 --- a/src/class/audio/audio_device.h +++ b/src/class/audio/audio_device.h @@ -64,21 +64,25 @@ #ifndef CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE #define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_IN // TX #endif +#else +#define CFG_TUD_AUDIO_EP_IN_SW_BUFFER_SIZE 0 #endif #if CFG_TUD_AUDIO_EPSIZE_OUT #ifndef CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE #define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE CFG_TUD_AUDIO_EPSIZE_OUT // RX #endif +#else +#define CFG_TUD_AUDIO_EP_OUT_SW_BUFFER_SIZE 0 #endif // General information of number of TX and/or RX channels - is used in case support FIFOs (see below) are used and can be used for descriptor definitions #ifndef CFG_TUD_AUDIO_N_CHANNELS_TX -#define CFG_TUD_AUDIO_N_CHANNELS_TX 0 +#define CFG_TUD_AUDIO_N_CHANNELS_TX 0 #endif #ifndef CFG_TUD_AUDIO_N_CHANNELS_RX -#define CFG_TUD_AUDIO_N_CHANNELS_RX 0 +#define CFG_TUD_AUDIO_N_CHANNELS_RX 0 #endif // Use of TX/RX support FIFOs