diff options
| author | Reinhard Panhuber <[email protected]> | 2020-07-20 20:24:05 +0200 |
|---|---|---|
| committer | Reinhard Panhuber <[email protected]> | 2020-07-20 20:24:05 +0200 |
| commit | 141db1278aabd9a5d508450752fd5df79759747c (patch) | |
| tree | 4f61099e9eb28acea771b7159103353dc7f274a5 /src/class | |
| parent | fdb156a3bb1eb4bc223dbca1dd287c7eff7a8e7c (diff) | |
Make definition of CFG_TUD_AUDIO_CTRL_BUF_SIZE mandatory
Diffstat (limited to 'src/class')
| -rw-r--r-- | src/class/audio/audio_device.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/class/audio/audio_device.h b/src/class/audio/audio_device.h index cc757d451..8494281c4 100644 --- a/src/class/audio/audio_device.h +++ b/src/class/audio/audio_device.h @@ -45,7 +45,7 @@ // Size of control buffer used to receive and send control messages via EP0 - has to be big enough to hold your biggest request structure e.g. range requests with multiple intervals defined or cluster descriptors #ifndef CFG_TUD_AUDIO_CTRL_BUF_SIZE -#define CFG_TUD_AUDIO_CTRL_BUF_SIZE 64 +#error You must define an audio class control request buffer size! #endif // Use of TX/RX FIFOs - If sizes are not zero, audio.c implements FIFOs for RX and TX (whatever defined). @@ -79,7 +79,7 @@ #define CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN 0 // Audio interrupt control #endif -#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN > 0 +#if CFG_TUD_AUDIO_INT_CTR_EPSIZE_IN #ifndef CFG_TUD_AUDIO_INT_CTR_BUFSIZE #define CFG_TUD_AUDIO_INT_CTR_BUFSIZE 6 // Buffer size of audio control interrupt EP - 6 Bytes according to UAC 2 specification (p. 74) #endif |
