summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-04-03 16:53:29 +0200
committerReinhard Panhuber <[email protected]>2021-04-03 16:53:29 +0200
commit4af5189492f850615581d3310e20c98f69cf6138 (patch)
tree1e0c2333647d873a0392d05c4f28b8ea8e4734b5 /examples
parent955979633774b5421f73c70fc524ef058af676b7 (diff)
Fix potential bug in support FIFO sizes
Diffstat (limited to 'examples')
-rw-r--r--examples/device/uac2_headset/src/tusb_config.h2
-rw-r--r--examples/device/uac2_headset/src/usb_descriptors.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/examples/device/uac2_headset/src/tusb_config.h b/examples/device/uac2_headset/src/tusb_config.h
index 514728ac4..00620d9ed 100644
--- a/examples/device/uac2_headset/src/tusb_config.h
+++ b/examples/device/uac2_headset/src/tusb_config.h
@@ -94,8 +94,6 @@ extern "C" {
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
#define CFG_TUD_AUDIO_OUT_PATH (CFG_TUD_AUDIO)
-#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN TUD_AUDIO_HEADSET_STEREO_DESC_LEN
-
// Audio format type I specifications
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
#define CFG_TUD_AUDIO_FUNC_1_N_BYTES_PER_SAMPLE_TX 2
diff --git a/examples/device/uac2_headset/src/usb_descriptors.c b/examples/device/uac2_headset/src/usb_descriptors.c
index cd749eb65..404863dba 100644
--- a/examples/device/uac2_headset/src/usb_descriptors.c
+++ b/examples/device/uac2_headset/src/usb_descriptors.c
@@ -87,6 +87,8 @@ uint8_t const * tud_descriptor_device_cb(void)
#define EPNUM_AUDIO 0x01
#endif
+#define CFG_TUD_AUDIO_FUNC_1_DESC_LEN TUD_AUDIO_HEADSET_STEREO_DESC_LEN
+
uint8_t const desc_configuration[] =
{
// Interface count, string index, total length, attribute, power in mA