summaryrefslogtreecommitdiff
path: root/src/class
diff options
context:
space:
mode:
authorReinhard Panhuber <[email protected]>2021-04-08 20:11:51 +0200
committerReinhard Panhuber <[email protected]>2021-04-08 20:11:51 +0200
commit4bebb9ca49bc6fc7ae281d284e009afe276a2948 (patch)
treee2954c53c8c008985efd766fde7751ff34a67faf /src/class
parent930eca0748f047c0130bcf28039c34a1d489b89e (diff)
Remove depracted defines in audio_device.c
Diffstat (limited to 'src/class')
-rw-r--r--src/class/audio/audio_device.c5
1 files changed, 0 insertions, 5 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c
index 2e9684cb9..8c0d563e6 100644
--- a/src/class/audio/audio_device.c
+++ b/src/class/audio/audio_device.c
@@ -762,13 +762,8 @@ static bool audiod_tx_done_cb(uint8_t rhport, audiod_interface_t * audio)
uint8_t idxDriver, idxItf;
uint8_t const *dummy2;
-#if CFG_TUD_AUDIO_ENABLE_ENCODING && CFG_TUD_AUDIO_ENABLE_EP_IN && CFG_TUD_AUDIO_FORMAT_TYPE_TX == AUDIO_FORMAT_TYPE_I
- // Required in any case regardless if call backs are used - find index of audio streaming interface and index of interface
- TU_VERIFY(audiod_get_AS_interface_index(audio->ep_in_as_intf_num, &idxDriver, &idxItf, &dummy2));
-#else
// If a callback is used determine current alternate setting of - find index of audio streaming interface and index of interface
if (tud_audio_tx_done_pre_load_cb || tud_audio_tx_done_post_load_cb) TU_VERIFY(audiod_get_AS_interface_index(audio->ep_in_as_intf_num, &idxDriver, &idxItf, &dummy2));
-#endif
// Call a weak callback here - a possibility for user to get informed former TX was completed and data gets now loaded into EP in buffer (in case FIFOs are used) or
// if no FIFOs are used the user may use this call back to load its data into the EP IN buffer by use of tud_audio_n_write_ep_in_buffer().