summaryrefslogtreecommitdiff
path: root/common/usbx_host_classes/src/ux_host_class_audio_read.c
diff options
context:
space:
mode:
authorYuxin Zhou <[email protected]>2021-10-13 06:50:29 +0000
committerYuxin Zhou <[email protected]>2021-10-13 06:50:29 +0000
commit54ec78321f00e4ed880dbd7bc4eb39f806ba130e (patch)
tree80cafc6a0fae07a8627a5d9434dd8d48fde5ad55 /common/usbx_host_classes/src/ux_host_class_audio_read.c
parent3574b6bc518553adefe70d82db907ae801786d6f (diff)
Release 6.1.9v6.1.9_rel
Diffstat (limited to 'common/usbx_host_classes/src/ux_host_class_audio_read.c')
-rw-r--r--common/usbx_host_classes/src/ux_host_class_audio_read.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/common/usbx_host_classes/src/ux_host_class_audio_read.c b/common/usbx_host_classes/src/ux_host_class_audio_read.c
index 0e11056..783edef 100644
--- a/common/usbx_host_classes/src/ux_host_class_audio_read.c
+++ b/common/usbx_host_classes/src/ux_host_class_audio_read.c
@@ -35,7 +35,7 @@
/* FUNCTION RELEASE */
/* */
/* _ux_host_class_audio_read PORTABLE C */
-/* 6.1 */
+/* 6.1.9 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -72,6 +72,10 @@
/* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */
/* 09-30-2020 Chaoqiong Xiao Modified comment(s), */
/* resulting in version 6.1 */
+/* 10-15-2021 Chaoqiong Xiao Modified comment(s), */
+/* use pre-calculated value */
+/* instead of wMaxPacketSize, */
+/* resulting in version 6.1.9 */
/* */
/**************************************************************************/
UINT _ux_host_class_audio_read(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_TRANSFER_REQUEST *audio_transfer_request)
@@ -129,7 +133,8 @@ UINT status;
/* For audio in, we read packets at a time, so the transfer request size is the size of the
endpoint. */
audio_transfer_request -> ux_host_class_audio_transfer_request_requested_length =
- audio -> ux_host_class_audio_isochronous_endpoint -> ux_endpoint_descriptor.wMaxPacketSize;
+ audio -> ux_host_class_audio_isochronous_endpoint ->
+ ux_endpoint_transfer_request.ux_transfer_request_packet_length;
/* Ask the stack to hook this transfer request to the iso ED. */
status = _ux_host_class_audio_transfer_request(audio, audio_transfer_request);