diff options
| author | YixingShen <[email protected]> | 2024-01-26 09:09:44 +0800 |
|---|---|---|
| committer | YixingShen <[email protected]> | 2024-01-26 09:09:44 +0800 |
| commit | 2f2d2bcf3e1fd09fa15015efaae686dd65612c30 (patch) | |
| tree | 45f89e794e57cdbd90b5851091c615ea16506195 /src/class/audio/audio_device.c | |
| parent | 4c9f462423338a812378924233eac55ce0e96fb8 (diff) | |
| parent | b7134934363b88881e4767a16eecb22cad410d73 (diff) | |
Merge branch 'master' of https://github.com/YixingShen/tinyusb
Diffstat (limited to 'src/class/audio/audio_device.c')
| -rw-r--r-- | src/class/audio/audio_device.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/class/audio/audio_device.c b/src/class/audio/audio_device.c index d438d0715..4adc558a6 100644 --- a/src/class/audio/audio_device.c +++ b/src/class/audio/audio_device.c @@ -1729,7 +1729,7 @@ static bool audiod_set_interface(uint8_t rhport, tusb_control_request_t const * // Find correct interface if (tu_desc_type(p_desc) == TUSB_DESC_INTERFACE && ((tusb_desc_interface_t const * )p_desc)->bInterfaceNumber == itf && ((tusb_desc_interface_t const * )p_desc)->bAlternateSetting == alt) { -#if CFG_TUD_AUDIO_ENABLE_ENCODING || CFG_TUD_AUDIO_ENABLE_DECODING || CFG_TUD_AUDIO_EP_IN_FLOW_CONTROL +#if (CFG_TUD_AUDIO_ENABLE_EP_IN && (CFG_TUD_AUDIO_EP_IN_FLOW_CONTROL || CFG_TUD_AUDIO_ENABLE_ENCODING)) || (CFG_TUD_AUDIO_ENABLE_EP_OUT && CFG_TUD_AUDIO_ENABLE_DECODING) uint8_t const * p_desc_parse_for_params = p_desc; #endif // From this point forward follow the EP descriptors associated to the current alternate setting interface - Open EPs if necessary |
