Skip to content

Commit 50e61e0

Browse files
authored
Merge pull request hathach#2101 from eustas/patch-1
Fix typos
2 parents 6cf7350 + 0833806 commit 50e61e0

File tree

4 files changed

+10
-10
lines changed

4 files changed

+10
-10
lines changed

examples/device/audio_test_multi_rate/src/usb_descriptors.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@
6060

6161
#define TUD_AUDIO_MIC_ONE_CH_2_FORMAT_DESCRIPTOR(_itfnum, _stridx, _epin) \
6262
/* Standard Interface Association Descriptor (IAD) */\
63-
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
63+
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
6464
/* Standard AC Interface Descriptor(4.7.1) */\
6565
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
6666
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\

examples/device/uac2_headset/src/usb_descriptors.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ enum
5757
+ TUD_AUDIO_DESC_OUTPUT_TERM_LEN\
5858
/* Interface 1, Alternate 0 */\
5959
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
60-
/* Interface 1, Alternate 0 */\
60+
/* Interface 1, Alternate 1 */\
6161
+ TUD_AUDIO_DESC_STD_AS_INT_LEN\
6262
+ TUD_AUDIO_DESC_CS_AS_INT_LEN\
6363
+ TUD_AUDIO_DESC_TYPE_I_FORMAT_LEN\
@@ -86,7 +86,7 @@ enum
8686

8787
#define TUD_AUDIO_HEADSET_STEREO_DESCRIPTOR(_stridx, _epout, _epin) \
8888
/* Standard Interface Association Descriptor (IAD) */\
89-
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ ITF_NUM_AUDIO_CONTROL, /*_nitfs*/ 3, /*_stridx*/ 0x00),\
89+
TUD_AUDIO_DESC_IAD(/*_firstitf*/ ITF_NUM_AUDIO_CONTROL, /*_nitfs*/ ITF_NUM_TOTAL, /*_stridx*/ 0x00),\
9090
/* Standard AC Interface Descriptor(4.7.1) */\
9191
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ ITF_NUM_AUDIO_CONTROL, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
9292
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\

src/class/video/video.h

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -448,9 +448,9 @@ TU_VERIFY_STATIC( sizeof(video_probe_and_commit_control_t) == 48, "size is not c
448448
#define TUD_VIDEO_GUID_M420 0x4D,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
449449
#define TUD_VIDEO_GUID_I420 0x49,0x34,0x32,0x30,0x00,0x00,0x10,0x00,0x80,0x00,0x00,0xAA,0x00,0x38,0x9B,0x71
450450

451-
#define TUD_VIDEO_DESC_IAD(_firstitfs, _nitfs, _stridx) \
451+
#define TUD_VIDEO_DESC_IAD(_firstitf, _nitfs, _stridx) \
452452
TUD_VIDEO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, \
453-
_firstitfs, _nitfs, TUSB_CLASS_VIDEO, VIDEO_SUBCLASS_INTERFACE_COLLECTION, \
453+
_firstitf, _nitfs, TUSB_CLASS_VIDEO, VIDEO_SUBCLASS_INTERFACE_COLLECTION, \
454454
VIDEO_ITF_PROTOCOL_UNDEFINED, _stridx
455455

456456
#define TUD_VIDEO_DESC_STD_VC(_itfnum, _nEPs, _stridx) \

src/device/usbd.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -347,8 +347,8 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
347347

348348
/* Standard Interface Association Descriptor (IAD) */
349349
#define TUD_AUDIO_DESC_IAD_LEN 8
350-
#define TUD_AUDIO_DESC_IAD(_firstitfs, _nitfs, _stridx) \
351-
TUD_AUDIO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, _firstitfs, _nitfs, TUSB_CLASS_AUDIO, AUDIO_FUNCTION_SUBCLASS_UNDEFINED, AUDIO_FUNC_PROTOCOL_CODE_V2, _stridx
350+
#define TUD_AUDIO_DESC_IAD(_firstitf, _nitfs, _stridx) \
351+
TUD_AUDIO_DESC_IAD_LEN, TUSB_DESC_INTERFACE_ASSOCIATION, _firstitf, _nitfs, TUSB_CLASS_AUDIO, AUDIO_FUNCTION_SUBCLASS_UNDEFINED, AUDIO_FUNC_PROTOCOL_CODE_V2, _stridx
352352

353353
/* Standard AC Interface Descriptor(4.7.1) */
354354
#define TUD_AUDIO_DESC_STD_AC_LEN 9
@@ -443,7 +443,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
443443

444444
#define TUD_AUDIO_MIC_ONE_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
445445
/* Standard Interface Association Descriptor (IAD) */\
446-
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
446+
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
447447
/* Standard AC Interface Descriptor(4.7.1) */\
448448
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
449449
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
@@ -492,7 +492,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
492492

493493
#define TUD_AUDIO_MIC_FOUR_CH_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epin, _epsize) \
494494
/* Standard Interface Association Descriptor (IAD) */\
495-
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
495+
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
496496
/* Standard AC Interface Descriptor(4.7.1) */\
497497
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
498498
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\
@@ -540,7 +540,7 @@ TU_ATTR_WEAK bool tud_vendor_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb
540540

541541
#define TUD_AUDIO_SPEAKER_MONO_FB_DESCRIPTOR(_itfnum, _stridx, _nBytesPerSample, _nBitsUsedPerSample, _epout, _epsize, _epfb) \
542542
/* Standard Interface Association Descriptor (IAD) */\
543-
TUD_AUDIO_DESC_IAD(/*_firstitfs*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
543+
TUD_AUDIO_DESC_IAD(/*_firstitf*/ _itfnum, /*_nitfs*/ 0x02, /*_stridx*/ 0x00),\
544544
/* Standard AC Interface Descriptor(4.7.1) */\
545545
TUD_AUDIO_DESC_STD_AC(/*_itfnum*/ _itfnum, /*_nEPs*/ 0x00, /*_stridx*/ _stridx),\
546546
/* Class-Specific AC Interface Header Descriptor(4.7.2) */\

0 commit comments

Comments
 (0)