Skip to content

Commit

Permalink
audiod_function_t clean up.
Browse files Browse the repository at this point in the history
  • Loading branch information
HiFiPhile committed Jul 28, 2024
1 parent f48a456 commit 4a48544
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions src/class/audio/audio_device.c
Original file line number Diff line number Diff line change
Expand Up @@ -303,8 +303,6 @@ typedef struct

bool mounted; // Device opened

/*------------- From this point, data is not cleared by bus reset -------------*/

uint16_t desc_length; // Length of audio function descriptor

#if CFG_TUD_AUDIO_ENABLE_FEEDBACK_EP
Expand Down Expand Up @@ -369,6 +367,8 @@ typedef struct
#endif
#endif

/*------------- From this point, data is not cleared by bus reset -------------*/

// Buffer for control requests
uint8_t * ctrl_buf;
uint8_t ctrl_buf_sz;
Expand All @@ -377,14 +377,10 @@ typedef struct
uint8_t * alt_setting; // We need to save the current alternate setting this way, because it is possible that there are AS interfaces which do not have an EP!

// EP Transfer buffers and FIFOs
#if CFG_TUD_AUDIO_ENABLE_EP_OUT
#if !CFG_TUD_AUDIO_ENABLE_DECODING
#if CFG_TUD_AUDIO_ENABLE_EP_OUT && !CFG_TUD_AUDIO_ENABLE_DECODING
tu_fifo_t ep_out_ff;
#endif


#endif // CFG_TUD_AUDIO_ENABLE_EP_OUT

#if CFG_TUD_AUDIO_ENABLE_EP_IN && !CFG_TUD_AUDIO_ENABLE_ENCODING
tu_fifo_t ep_in_ff;
#endif
Expand All @@ -394,7 +390,6 @@ typedef struct
CFG_TUSB_MEM_ALIGN uint8_t ep_int_buf[6];
#endif


// Support FIFOs for software encoding and decoding
#if CFG_TUD_AUDIO_ENABLE_EP_OUT && CFG_TUD_AUDIO_ENABLE_DECODING
tu_fifo_t * rx_supp_ff;
Expand Down

0 comments on commit 4a48544

Please sign in to comment.