summaryrefslogtreecommitdiff
path: root/common/usbx_device_classes/inc/ux_device_class_audio20.h
diff options
context:
space:
mode:
authorChaoqiong Xiao <[email protected]>2023-03-08 08:32:02 +0000
committerChaoqiong Xiao <[email protected]>2023-03-08 08:32:02 +0000
commit2d357c5912709485aac36a3bf3800cf282477d34 (patch)
tree70e5abeff5343d3ff88577e6bfca3f0bac11ce9e /common/usbx_device_classes/inc/ux_device_class_audio20.h
parent813361a875870d3c3c4ae7b830a54e0748e889e1 (diff)
Release 6.2.1 on 08 Mar 2023. Expand to see details.v6.2.1_rel
e180182e Update owners a6785db8 Update for release. bc77918b Improve host audio sampling set and check (fixed a memory issue). 97d66e5d Add optimization options to ux_user.h eea2c732 USBX device printer error checking support. 1760cc8c USBX device audio error checking support a39f2f26 Fixed a macro name issue in device audio 1.0 83278dd8 Supported multiple report IDs in host HID. c548fe33 Fixed host CDC-ACM capability get. b64f8cdb Fix vendor request handling.
Diffstat (limited to 'common/usbx_device_classes/inc/ux_device_class_audio20.h')
-rw-r--r--common/usbx_device_classes/inc/ux_device_class_audio20.h24
1 files changed, 23 insertions, 1 deletions
diff --git a/common/usbx_device_classes/inc/ux_device_class_audio20.h b/common/usbx_device_classes/inc/ux_device_class_audio20.h
index aa7cc4f..7c2da21 100644
--- a/common/usbx_device_classes/inc/ux_device_class_audio20.h
+++ b/common/usbx_device_classes/inc/ux_device_class_audio20.h
@@ -26,7 +26,7 @@
/* COMPONENT DEFINITION RELEASE */
/* */
/* ux_device_class_audio20.h PORTABLE C */
-/* 6.1.12 */
+/* 6.2.1 */
/* AUTHOR */
/* */
/* Chaoqiong Xiao, Microsoft Corporation */
@@ -55,6 +55,9 @@
/* sampling frequencies, */
/* added clock multiplier DEFs,*/
/* resulting in version 6.1.12 */
+/* 03-08-2023 Chaoqiong Xiao Modified comment(s), */
+/* added error checks support, */
+/* resulting in version 6.2.1 */
/* */
/**************************************************************************/
@@ -72,6 +75,13 @@ extern "C" {
#endif
+/* Internal option: enable the basic USBX error checking. This define is typically used
+ while debugging application. */
+#if defined(UX_ENABLE_ERROR_CHECKING) && !defined(UX_DEVICE_CLASS_AUDIO_ENABLE_ERROR_CHECKING)
+#define UX_DEVICE_CLASS_AUDIO_ENABLE_ERROR_CHECKING
+#endif
+
+
/* Define Audio Class function category codes. */
#define UX_DEVICE_CLASS_AUDIO20_CATEGORY_UNDEFINED 0x00
@@ -449,8 +459,20 @@ UINT _ux_device_class_audio20_control_process(UX_DEVICE_CLASS_AUDIO *audio,
UX_SLAVE_TRANSFER *transfer,
UX_DEVICE_CLASS_AUDIO20_CONTROL_GROUP *group);
+UINT _uxe_device_class_audio20_control_process(UX_DEVICE_CLASS_AUDIO *audio,
+ UX_SLAVE_TRANSFER *transfer,
+ UX_DEVICE_CLASS_AUDIO20_CONTROL_GROUP *group);
+
+#if defined(UX_DEVICE_CLASS_AUDIO_ENABLE_ERROR_CHECKING)
+
+#define ux_device_class_audio20_control_process _uxe_device_class_audio20_control_process
+
+#else
+
#define ux_device_class_audio20_control_process _ux_device_class_audio20_control_process
+#endif
+
/* Determine if a C++ compiler is being used. If so, complete the standard
C conditional started above. */
#ifdef __cplusplus