mirror of
https://github.com/hathach/tinyusb.git
synced 2025-03-25 10:43:44 +00:00
Fix error in #defines in uac2_headset
This commit is contained in:
parent
fcb97bd4e9
commit
fc65f39ff2
@ -94,6 +94,8 @@ extern "C" {
|
|||||||
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
|
#define CFG_TUD_AUDIO_IN_PATH (CFG_TUD_AUDIO)
|
||||||
#define CFG_TUD_AUDIO_OUT_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
|
// Audio format type I specifications
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
#define CFG_TUD_AUDIO_FUNC_1_N_CHANNELS_TX 1
|
||||||
#define CFG_TUD_AUDIO_FUNC_1_N_BYTES_PER_SAMPLE_TX 2
|
#define CFG_TUD_AUDIO_FUNC_1_N_BYTES_PER_SAMPLE_TX 2
|
||||||
|
@ -87,11 +87,6 @@ uint8_t const * tud_descriptor_device_cb(void)
|
|||||||
#define EPNUM_AUDIO 0x01
|
#define EPNUM_AUDIO 0x01
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
// These variables are required by the audio driver in audio_device.c
|
|
||||||
|
|
||||||
// List of audio descriptor lengths which is required by audio driver - you need as many entries as CFG_TUD_AUDIO
|
|
||||||
const uint16_t tud_audio_desc_lengths[] = {TUD_AUDIO_HEADSET_STEREO_DESC_LEN};
|
|
||||||
|
|
||||||
uint8_t const desc_configuration[] =
|
uint8_t const desc_configuration[] =
|
||||||
{
|
{
|
||||||
// Interface count, string index, total length, attribute, power in mA
|
// Interface count, string index, total length, attribute, power in mA
|
||||||
|
@ -388,7 +388,10 @@ static bool audiod_get_AS_interface_index(uint8_t itf, uint8_t *idxDriver, uint8
|
|||||||
static bool audiod_verify_entity_exists(uint8_t itf, uint8_t entityID, uint8_t *idxDriver);
|
static bool audiod_verify_entity_exists(uint8_t itf, uint8_t entityID, uint8_t *idxDriver);
|
||||||
static bool audiod_verify_itf_exists(uint8_t itf, uint8_t *idxDriver);
|
static bool audiod_verify_itf_exists(uint8_t itf, uint8_t *idxDriver);
|
||||||
static bool audiod_verify_ep_exists(uint8_t ep, uint8_t *idxDriver);
|
static bool audiod_verify_ep_exists(uint8_t ep, uint8_t *idxDriver);
|
||||||
|
|
||||||
|
#if CFG_TUD_AUDIO_ENABLE_ENCODING || CFG_TUD_AUDIO_ENABLE_DECODING
|
||||||
static void audiod_parse_for_AS_params(audiod_interface_t* audio, uint8_t const * p_desc, uint8_t const * p_desc_end, uint8_t const itf);
|
static void audiod_parse_for_AS_params(audiod_interface_t* audio, uint8_t const * p_desc, uint8_t const * p_desc_end, uint8_t const itf);
|
||||||
|
#endif
|
||||||
|
|
||||||
static inline uint8_t tu_desc_subtype(void const* desc)
|
static inline uint8_t tu_desc_subtype(void const* desc)
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user