/USBX-v6.2.1/common/usbx_device_classes/src/ |
D | ux_device_class_audio_interrupt_task_function.c | 76 UINT _ux_device_class_audio_interrupt_task_function(UX_DEVICE_CLASS_AUDIO *audio) in _ux_device_class_audio_interrupt_task_function() argument 87 device = audio -> ux_device_class_audio_device; in _ux_device_class_audio_interrupt_task_function() 96 audio -> ux_device_class_audio_interrupt_task_state = UX_STATE_EXIT; in _ux_device_class_audio_interrupt_task_function() 101 endpoint = audio -> ux_device_class_audio_interrupt; in _ux_device_class_audio_interrupt_task_function() 110 audio -> ux_device_class_audio_interrupt_task_state = UX_STATE_RESET; in _ux_device_class_audio_interrupt_task_function() 115 if (audio -> ux_device_class_audio_status_queued == 0) in _ux_device_class_audio_interrupt_task_function() 117 audio -> ux_device_class_audio_interrupt_task_state = UX_STATE_RESET; in _ux_device_class_audio_interrupt_task_function() 118 audio -> ux_device_class_audio_interrupt_task_status = UX_TRANSFER_NOT_READY; in _ux_device_class_audio_interrupt_task_function() 126 switch(audio -> ux_device_class_audio_interrupt_task_state) in _ux_device_class_audio_interrupt_task_function() 129 audio -> ux_device_class_audio_interrupt_task_state = UX_DEVICE_CLASS_AUDIO_INTERRUPT_START; in _ux_device_class_audio_interrupt_task_function() [all …]
|
D | ux_device_class_audio_interrupt_send.c | 76 UINT _ux_device_class_audio_interrupt_send(UX_DEVICE_CLASS_AUDIO *audio, UCHAR *int_data) in _ux_device_class_audio_interrupt_send() argument 79 UX_PARAMETER_NOT_USED(audio); in _ux_device_class_audio_interrupt_send() 102 endpoint = audio -> ux_device_class_audio_interrupt; in _ux_device_class_audio_interrupt_send() 107 size = audio -> ux_device_class_audio_status_size; in _ux_device_class_audio_interrupt_send() 110 _ux_device_mutex_on(&audio -> ux_device_class_audio_status_mutex); in _ux_device_class_audio_interrupt_send() 113 buff = audio -> ux_device_class_audio_status_tail; in _ux_device_class_audio_interrupt_send() 114 …end = audio -> ux_device_class_audio_status_queue + audio -> ux_device_class_audio_status_queue_by… in _ux_device_class_audio_interrupt_send() 115 for (i = 0; i < audio -> ux_device_class_audio_status_queued; i += size) in _ux_device_class_audio_interrupt_send() 123 _ux_device_mutex_off(&audio -> ux_device_class_audio_status_mutex); in _ux_device_class_audio_interrupt_send() 130 buff = audio -> ux_device_class_audio_status_queue; in _ux_device_class_audio_interrupt_send() [all …]
|
D | ux_device_class_audio_activate.c | 85 UX_DEVICE_CLASS_AUDIO *audio; in _ux_device_class_audio_activate() local 95 audio = (UX_DEVICE_CLASS_AUDIO *) audio_class -> ux_slave_class_instance; in _ux_device_class_audio_activate() 102 audio -> ux_device_class_audio_device = device; in _ux_device_class_audio_activate() 113 audio -> ux_device_class_audio_interface = audio_interface; in _ux_device_class_audio_activate() 116 audio_interface -> ux_slave_interface_class_instance = (VOID *)audio; in _ux_device_class_audio_activate() 121 … audio -> ux_device_class_audio_interrupt = audio_interface -> ux_slave_interface_first_endpoint; in _ux_device_class_audio_activate() 122 audio -> ux_device_class_audio_status_queued = 0; in _ux_device_class_audio_activate() 123 audio -> ux_device_class_audio_status_head = audio -> ux_device_class_audio_status_queue; in _ux_device_class_audio_activate() 124 audio -> ux_device_class_audio_status_tail = audio -> ux_device_class_audio_status_queue; in _ux_device_class_audio_activate() 134 if (audio -> ux_device_class_audio_interface == UX_NULL) in _ux_device_class_audio_activate() [all …]
|
D | ux_device_class_audio_interrupt_thread_entry.c | 79 UX_DEVICE_CLASS_AUDIO *audio; in _ux_device_class_audio_interrupt_thread_entry() local 88 UX_THREAD_EXTENSION_PTR_GET(audio, UX_DEVICE_CLASS_AUDIO, audio_inst) in _ux_device_class_audio_interrupt_thread_entry() 91 device = audio -> ux_device_class_audio_device; in _ux_device_class_audio_interrupt_thread_entry() 100 endpoint = audio -> ux_device_class_audio_interrupt; in _ux_device_class_audio_interrupt_thread_entry() 110 …status = _ux_device_semaphore_get(&audio -> ux_device_class_audio_status_semaphore, UX_WAIT_FOREVE… in _ux_device_class_audio_interrupt_thread_entry() 120 size = audio -> ux_device_class_audio_status_size; in _ux_device_class_audio_interrupt_thread_entry() 124 buff = audio -> ux_device_class_audio_status_tail; in _ux_device_class_audio_interrupt_thread_entry() 142 …if (buff >= (audio -> ux_device_class_audio_status_queue + audio -> ux_device_class_audio_status_q… in _ux_device_class_audio_interrupt_thread_entry() 143 buff = audio -> ux_device_class_audio_status_queue; in _ux_device_class_audio_interrupt_thread_entry() 146 _ux_device_mutex_on(&audio -> ux_device_class_audio_status_mutex); in _ux_device_class_audio_interrupt_thread_entry() [all …]
|
D | ux_device_class_audio_deactivate.c | 79 UX_DEVICE_CLASS_AUDIO *audio; in _ux_device_class_audio_deactivate() local 90 audio = (UX_DEVICE_CLASS_AUDIO *) class_ptr -> ux_slave_class_instance; in _ux_device_class_audio_deactivate() 93 stream = audio -> ux_device_class_audio_streams; in _ux_device_class_audio_deactivate() 94 for (i = 0; i < audio -> ux_device_class_audio_streams_nb; i ++) in _ux_device_class_audio_deactivate() 112 audio -> ux_device_class_audio_interface = UX_NULL; in _ux_device_class_audio_deactivate() 115 … if (audio -> ux_device_class_audio_callbacks.ux_slave_class_audio_instance_deactivate != UX_NULL) in _ux_device_class_audio_deactivate() 118 audio -> ux_device_class_audio_callbacks.ux_slave_class_audio_instance_deactivate(audio); in _ux_device_class_audio_deactivate()
|
D | ux_device_class_audio_stream_get.c | 79 UINT _ux_device_class_audio_stream_get(UX_DEVICE_CLASS_AUDIO *audio, in _ux_device_class_audio_stream_get() argument 84 *stream = audio -> ux_device_class_audio_streams + stream_index; in _ux_device_class_audio_stream_get() 131 UINT _uxe_device_class_audio_stream_get(UX_DEVICE_CLASS_AUDIO *audio, in _uxe_device_class_audio_stream_get() argument 136 if (audio == UX_NULL) in _uxe_device_class_audio_stream_get() 140 if (stream_index >= audio -> ux_device_class_audio_streams_nb) in _uxe_device_class_audio_stream_get() 148 return(_ux_device_class_audio_stream_get(audio, stream_index, stream)); in _uxe_device_class_audio_stream_get()
|
D | ux_device_class_audio_unitialize.c | 83 UX_DEVICE_CLASS_AUDIO *audio; in _ux_device_class_audio_uninitialize() local 93 audio = (UX_DEVICE_CLASS_AUDIO *) audio_class -> ux_slave_class_instance; in _ux_device_class_audio_uninitialize() 96 if (audio != UX_NULL) in _ux_device_class_audio_uninitialize() 100 stream = (UX_DEVICE_CLASS_AUDIO_STREAM *)((UCHAR *)audio + sizeof(UX_DEVICE_CLASS_AUDIO)); in _ux_device_class_audio_uninitialize() 101 for (i = 0; i < audio -> ux_device_class_audio_streams_nb; i ++) in _ux_device_class_audio_uninitialize() 125 _ux_device_semaphore_delete(&audio -> ux_device_class_audio_status_semaphore); in _ux_device_class_audio_uninitialize() 126 _ux_device_mutex_delete(&audio -> ux_device_class_audio_status_mutex); in _ux_device_class_audio_uninitialize() 132 _ux_utility_memory_free(audio); in _ux_device_class_audio_uninitialize()
|
/USBX-v6.2.1/common/usbx_host_classes/src/ |
D | ux_host_class_audio_deactivate.c | 89 UX_HOST_CLASS_AUDIO *audio; in _ux_host_class_audio_deactivate() local 95 audio = (UX_HOST_CLASS_AUDIO *) command -> ux_host_class_command_instance; in _ux_host_class_audio_deactivate() 98 if (_ux_host_class_audio_subclass_get(audio) == UX_HOST_CLASS_AUDIO_SUBCLASS_CONTROL) in _ux_host_class_audio_deactivate() 100 ac = (UX_HOST_CLASS_AUDIO_AC *)audio; in _ux_host_class_audio_deactivate() 115 _ux_host_stack_class_instance_destroy(audio -> ux_host_class_audio_class, (VOID *) audio); in _ux_host_class_audio_deactivate() 122 audio -> ux_host_class_audio_state = UX_HOST_CLASS_INSTANCE_SHUTDOWN; in _ux_host_class_audio_deactivate() 125 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_deactivate() 128 if (audio -> ux_host_class_audio_isochronous_endpoint) in _ux_host_class_audio_deactivate() 129 … _ux_host_stack_endpoint_transfer_abort(audio -> ux_host_class_audio_isochronous_endpoint); in _ux_host_class_audio_deactivate() 131 if (audio -> ux_host_class_audio_feedback_endpoint) in _ux_host_class_audio_deactivate() [all …]
|
D | ux_host_class_audio_stop.c | 75 UINT _ux_host_class_audio_stop(UX_HOST_CLASS_AUDIO *audio) in _ux_host_class_audio_stop() argument 85 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_stop() 92 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_stop() 98 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_stop() 101 …streaming_interface = audio -> ux_host_class_audio_streaming_interface -> ux_interface_descriptor… in _ux_host_class_audio_stop() 104 if (audio -> ux_host_class_audio_isochronous_endpoint != UX_NULL) in _ux_host_class_audio_stop() 108 _ux_host_stack_endpoint_transfer_abort(audio -> ux_host_class_audio_isochronous_endpoint); in _ux_host_class_audio_stop() 112 if (audio -> ux_host_class_audio_feedback_endpoint) in _ux_host_class_audio_stop() 113 _ux_host_stack_endpoint_transfer_abort(audio -> ux_host_class_audio_feedback_endpoint); in _ux_host_class_audio_stop() 118 …configuration = audio -> ux_host_class_audio_streaming_interface -> ux_interface_configurat… in _ux_host_class_audio_stop() [all …]
|
D | ux_host_class_audio_endpoints_get.c | 77 UINT _ux_host_class_audio_endpoints_get(UX_HOST_CLASS_AUDIO *audio) in _ux_host_class_audio_endpoints_get() argument 89 audio -> ux_host_class_audio_isochronous_endpoint = UX_NULL; in _ux_host_class_audio_endpoints_get() 91 audio -> ux_host_class_audio_feedback_endpoint = UX_NULL; in _ux_host_class_audio_endpoints_get() 95 …for (endpoint_index = 0; endpoint_index < audio -> ux_host_class_audio_streaming_interface -> ux_i… in _ux_host_class_audio_endpoints_get() 100 …status = _ux_host_stack_interface_endpoint_get(audio -> ux_host_class_audio_streaming_interface, … in _ux_host_class_audio_endpoints_get() 118 if (audio -> ux_host_class_audio_type == UX_HOST_CLASS_AUDIO_OUTPUT) in _ux_host_class_audio_endpoints_get() 119 audio -> ux_host_class_audio_isochronous_endpoint = endpoint; in _ux_host_class_audio_endpoints_get() 122 audio -> ux_host_class_audio_feedback_endpoint = endpoint; in _ux_host_class_audio_endpoints_get() 132 if (audio -> ux_host_class_audio_type == UX_HOST_CLASS_AUDIO_INPUT) in _ux_host_class_audio_endpoints_get() 133 audio -> ux_host_class_audio_isochronous_endpoint = endpoint; in _ux_host_class_audio_endpoints_get() [all …]
|
D | ux_host_class_audio_feedback_set.c | 76 UINT _ux_host_class_audio_feedback_set(UX_HOST_CLASS_AUDIO *audio, UCHAR *feedback) in _ux_host_class_audio_feedback_set() argument 79 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_feedback_set() 87 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_feedback_set() 94 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_feedback_set() 99 audio -> ux_host_class_audio_feedback_buffer[0] = feedback[0]; in _ux_host_class_audio_feedback_set() 100 audio -> ux_host_class_audio_feedback_buffer[1] = feedback[1]; in _ux_host_class_audio_feedback_set() 101 audio -> ux_host_class_audio_feedback_buffer[2] = feedback[2]; in _ux_host_class_audio_feedback_set() 102 if (_ux_host_class_audio_speed_get(audio) == UX_HIGH_SPEED_DEVICE) in _ux_host_class_audio_feedback_set() 103 audio -> ux_host_class_audio_feedback_buffer[3] = feedback[3]; in _ux_host_class_audio_feedback_set() 106 endpoint = audio -> ux_host_class_audio_feedback_endpoint; in _ux_host_class_audio_feedback_set() [all …]
|
D | ux_host_class_audio_feedback_get.c | 72 UINT _ux_host_class_audio_feedback_get(UX_HOST_CLASS_AUDIO *audio, UCHAR *feedback) in _ux_host_class_audio_feedback_get() argument 75 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_feedback_get() 81 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_feedback_get() 88 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_feedback_get() 93 feedback[0] = audio -> ux_host_class_audio_feedback_buffer[0]; in _ux_host_class_audio_feedback_get() 94 feedback[1] = audio -> ux_host_class_audio_feedback_buffer[1]; in _ux_host_class_audio_feedback_get() 95 feedback[2] = audio -> ux_host_class_audio_feedback_buffer[2]; in _ux_host_class_audio_feedback_get() 96 if (_ux_host_class_audio_speed_get(audio) == UX_HIGH_SPEED_DEVICE) in _ux_host_class_audio_feedback_get() 97 feedback[3] = audio -> ux_host_class_audio_feedback_buffer[3]; in _ux_host_class_audio_feedback_get()
|
D | ux_host_class_audio_read.c | 96 UINT _ux_host_class_audio_read(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_TRANSFER_REQUEST *a… in _ux_host_class_audio_read() argument 103 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_READ, audio, audio_transfer_request -> ux_host_c… in _ux_host_class_audio_read() 107 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_read() 114 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_read() 120 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_read() 123 …if (audio -> ux_host_class_audio_isochronous_endpoint -> ux_endpoint_descriptor.wMaxPacketSize == … in _ux_host_class_audio_read() 127 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_read() 138 mps = _ux_host_class_audio_max_packet_size_get(audio); in _ux_host_class_audio_read() 143 status = _ux_host_class_audio_transfer_request(audio, audio_transfer_request); in _ux_host_class_audio_read() 146 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_read()
|
D | ux_host_class_audio_control_value_set.c | 104 UINT _ux_host_class_audio_control_value_set(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_CONTRO… in _ux_host_class_audio_control_value_set() argument 107 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_control_value_set() 118 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_CONTROL_VALUE_SET, audio, audio_control, 0, 0, U… in _ux_host_class_audio_control_value_set() 121 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_control_value_set() 125 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_control_value_set() 131 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_set() 134 control_endpoint = &audio -> ux_host_class_audio_device -> ux_device_control_endpoint; in _ux_host_class_audio_control_value_set() 143 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_set() 151 …status = _ux_host_semaphore_get(&audio -> ux_host_class_audio_device -> ux_device_protection_sema… in _ux_host_class_audio_control_value_set() 159 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_set() [all …]
|
D | ux_host_class_audio_write.c | 92 UINT _ux_host_class_audio_write(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_TRANSFER_REQUEST *… in _ux_host_class_audio_write() argument 99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_WRITE, audio, audio_transfer_request -> ux_host_… in _ux_host_class_audio_write() 103 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_write() 110 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_write() 116 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_write() 119 …if (audio -> ux_host_class_audio_isochronous_endpoint -> ux_endpoint_descriptor.wMaxPacketSize == … in _ux_host_class_audio_write() 123 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_write() 133 mps = _ux_host_class_audio_max_packet_size_get(audio); in _ux_host_class_audio_write() 139 status = _ux_host_class_audio_transfer_request(audio, audio_transfer_request); in _ux_host_class_audio_write() 142 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_write()
|
D | ux_host_class_audio_interrupt_start.c | 80 UINT _ux_host_class_audio_interrupt_start(UX_HOST_CLASS_AUDIO_AC *audio, in _ux_host_class_audio_interrupt_start() argument 81 VOID(*callback_function)(UX_HOST_CLASS_AUDIO_AC *audio, in _ux_host_class_audio_interrupt_start() argument 87 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_interrupt_start() 98 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_interrupt_start() 105 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_interrupt_start() 111 endpoint = audio -> ux_host_class_audio_interrupt_endpoint; in _ux_host_class_audio_interrupt_start() 116 if (audio -> ux_host_class_audio_interrupt_started) in _ux_host_class_audio_interrupt_start() 120 audio -> ux_host_class_audio_interrupt_callback_arg = arg; in _ux_host_class_audio_interrupt_start() 121 audio -> ux_host_class_audio_interrupt_callback = callback_function; in _ux_host_class_audio_interrupt_start() 127 transfer -> ux_transfer_request_class_instance = (VOID *)audio; in _ux_host_class_audio_interrupt_start() [all …]
|
D | ux_host_class_audio_control_value_get.c | 103 UINT _ux_host_class_audio_control_value_get(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_CONTRO… in _ux_host_class_audio_control_value_get() argument 106 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_control_value_get() 117 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_CONTROL_VALUE_GET, audio, 0, 0, 0, UX_TRACE_HOST… in _ux_host_class_audio_control_value_get() 120 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_control_value_get() 127 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_control_value_get() 133 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_get() 136 control_endpoint = &audio -> ux_host_class_audio_device -> ux_device_control_endpoint; in _ux_host_class_audio_control_value_get() 145 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_get() 153 …status = _ux_host_semaphore_get(&audio -> ux_host_class_audio_device -> ux_device_protection_sema… in _ux_host_class_audio_control_value_get() 161 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_value_get() [all …]
|
D | ux_host_class_audio_streaming_sampling_set.c | 104 UINT _ux_host_class_audio_streaming_sampling_set(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_S… in _ux_host_class_audio_streaming_sampling_set() argument 121 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_STREAMING_SAMPLING_SET, audio, audio_sampling, 0… in _ux_host_class_audio_streaming_sampling_set() 124 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_streaming_sampling_set() 128 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_streaming_sampling_set() 131 …status = _ux_host_class_audio_alternate_setting_locate(audio, audio_sampling, &alternate_setting); in _ux_host_class_audio_streaming_sampling_set() 138 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_streaming_sampling_set() 144 …configuration = audio -> ux_host_class_audio_streaming_interface -> ux_interface_configurat… in _ux_host_class_audio_streaming_sampling_set() 146 …streaming_interface = audio -> ux_host_class_audio_streaming_interface -> ux_interface_descriptor… in _ux_host_class_audio_streaming_sampling_set() 147 device = audio -> ux_host_class_audio_device; in _ux_host_class_audio_streaming_sampling_set() 167 audio -> ux_host_class_audio_streaming_interface = interface_ptr; in _ux_host_class_audio_streaming_sampling_set() [all …]
|
D | ux_host_class_audio_control_get.c | 104 UINT _ux_host_class_audio_control_get(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO_CONTROL *aud… in _ux_host_class_audio_control_get() argument 107 UX_PARAMETER_NOT_USED(audio); in _ux_host_class_audio_control_get() 119 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_control_get() 126 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_control_get() 132 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_get() 135 control_endpoint = &audio -> ux_host_class_audio_device -> ux_device_control_endpoint; in _ux_host_class_audio_control_get() 140 …status = _ux_host_semaphore_get(&audio -> ux_host_class_audio_device -> ux_device_protection_sema… in _ux_host_class_audio_control_get() 147 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_get() 152 if (_ux_host_class_audio_protocol_get(audio) == UX_HOST_CLASS_AUDIO_PROTOCOL_IP_VERSION_02_00) in _ux_host_class_audio_control_get() 178 … _ux_host_semaphore_put(&audio -> ux_host_class_audio_device -> ux_device_protection_semaphore); in _ux_host_class_audio_control_get() [all …]
|
D | ux_host_class_audio_configure.c | 81 UINT _ux_host_class_audio_configure(UX_HOST_CLASS_AUDIO *audio) in _ux_host_class_audio_configure() argument 95 if (audio -> ux_host_class_audio_device -> ux_device_state == UX_DEVICE_CONFIGURED) in _ux_host_class_audio_configure() 100 …status = _ux_host_stack_device_configuration_get(audio -> ux_host_class_audio_device, 0, &configu… in _ux_host_class_audio_configure() 108 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONFIGURATION_HANDLE_UNKNOWN, audio -> ux_host_class_au… in _ux_host_class_audio_configure() 117 if (audio -> ux_host_class_audio_device -> ux_device_power_source == UX_DEVICE_BUS_POWERED) in _ux_host_class_audio_configure() 121 parent_device = audio -> ux_host_class_audio_device -> ux_device_parent; in _ux_host_class_audio_configure() 132 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_CONNECTION_INCOMPATIBLE, audio, 0, 0, UX_TRACE_ERRORS, … in _ux_host_class_audio_configure() 148 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, status, audio -> ux_host_class_audio_device, 0, 0, UX_TRAC… in _ux_host_class_audio_configure() 171 audio -> ux_host_class_audio_streaming_interface = interface; in _ux_host_class_audio_configure() 172 … audio -> ux_host_class_audio_streaming_interface -> ux_interface_class_instance = (VOID *)audio; in _ux_host_class_audio_configure() [all …]
|
D | ux_host_class_audio_entity_control_value_set.c | 82 UINT _ux_host_class_audio_entity_control_value_set(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO… in _ux_host_class_audio_entity_control_value_set() argument 90 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_CONTROL_VALUE_SET, audio, audio_control -> ux_ho… in _ux_host_class_audio_entity_control_value_set() 93 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_entity_control_value_set() 97 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_entity_control_value_set() 103 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_set() 111 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_set() 122 status = _ux_host_class_audio_control_request(audio, 0, in _ux_host_class_audio_entity_control_value_set() 125 … (_ux_host_class_audio_protocol_get(audio) == UX_HOST_CLASS_AUDIO_PROTOCOL_IP_VERSION_02_00) ? in _ux_host_class_audio_entity_control_value_set() 139 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_set()
|
D | ux_host_class_audio_activate.c | 97 UX_HOST_CLASS_AUDIO *audio; in _ux_host_class_audio_activate() local 292 …audio = (UX_HOST_CLASS_AUDIO *) _ux_utility_memory_allocate(UX_NO_ALIGN, UX_REGULAR_MEMORY, sizeo… in _ux_host_class_audio_activate() 293 if (audio == UX_NULL) in _ux_host_class_audio_activate() 297 audio -> ux_host_class_audio_class = command -> ux_host_class_command_class_ptr; in _ux_host_class_audio_activate() 300 audio -> ux_host_class_audio_streaming_interface = interface_ptr; in _ux_host_class_audio_activate() 303 …audio -> ux_host_class_audio_device = interface_ptr -> ux_interface_configuration -> ux_configura… in _ux_host_class_audio_activate() 306 interface_ptr -> ux_interface_class_instance = (VOID *) audio; in _ux_host_class_audio_activate() 309 _ux_host_stack_class_instance_create(audio -> ux_host_class_audio_class, (VOID *) audio); in _ux_host_class_audio_activate() 312 status = _ux_host_class_audio_configure(audio); in _ux_host_class_audio_activate() 317 status = _ux_host_class_audio_descriptor_get(audio); in _ux_host_class_audio_activate() [all …]
|
D | ux_host_class_audio_entity_control_value_get.c | 81 UINT _ux_host_class_audio_entity_control_value_get(UX_HOST_CLASS_AUDIO *audio, UX_HOST_CLASS_AUDIO… in _ux_host_class_audio_entity_control_value_get() argument 89 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_HOST_CLASS_AUDIO_CONTROL_VALUE_GET, audio, audio_control -> ux_ho… in _ux_host_class_audio_entity_control_value_get() 92 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_entity_control_value_get() 99 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_entity_control_value_get() 105 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_get() 113 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_get() 124 status = _ux_host_class_audio_control_request(audio, 0, in _ux_host_class_audio_entity_control_value_get() 127 … (_ux_host_class_audio_protocol_get(audio) == UX_HOST_CLASS_AUDIO_PROTOCOL_IP_VERSION_02_00) ? in _ux_host_class_audio_entity_control_value_get() 149 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_entity_control_value_get()
|
D | ux_host_class_audio_transfer_request.c | 77 UINT _ux_host_class_audio_transfer_request(UX_HOST_CLASS_AUDIO *audio, in _ux_host_class_audio_transfer_request() argument 90 audio -> ux_host_class_audio_isochronous_endpoint -> in _ux_host_class_audio_transfer_request() 94 …transfer_request -> ux_transfer_request_endpoint = audio -> ux_host_class_audio_isoch… in _ux_host_class_audio_transfer_request() 99 transfer_request -> ux_transfer_request_class_instance = audio; in _ux_host_class_audio_transfer_request() 109 audio -> ux_host_class_audio_tail_transfer_request; in _ux_host_class_audio_transfer_request() 110 audio -> ux_host_class_audio_tail_transfer_request = audio_transfer_request; in _ux_host_class_audio_transfer_request() 113 if (audio -> ux_host_class_audio_head_transfer_request == UX_NULL) in _ux_host_class_audio_transfer_request() 114 audio -> ux_host_class_audio_head_transfer_request = audio_transfer_request; in _ux_host_class_audio_transfer_request()
|
D | ux_host_class_audio_control_request.c | 88 UINT _ux_host_class_audio_control_request(UX_HOST_CLASS_AUDIO *audio, in _ux_host_class_audio_control_request() argument 103 …if (_ux_host_stack_class_instance_verify(_ux_system_host_class_audio_name, (VOID *) audio) != UX_S… in _ux_host_class_audio_control_request() 110 …UX_TRACE_IN_LINE_INSERT(UX_TRACE_ERROR, UX_HOST_CLASS_INSTANCE_UNKNOWN, audio, 0, 0, UX_TRACE_ERRO… in _ux_host_class_audio_control_request() 120 … audio -> ux_host_class_audio_streaming_interface -> ux_interface_descriptor.bInterfaceNumber : in _ux_host_class_audio_control_request() 121 audio -> ux_host_class_audio_control_interface_number; in _ux_host_class_audio_control_request() 124 …request_index = audio -> ux_host_class_audio_isochronous_endpoint -> ux_endpoint_descriptor.bEndpo… in _ux_host_class_audio_control_request() 131 _ux_host_mutex_on(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_request() 134 control_endpoint = &audio -> ux_host_class_audio_device -> ux_device_control_endpoint; in _ux_host_class_audio_control_request() 139 …status = _ux_host_semaphore_get(&audio -> ux_host_class_audio_device -> ux_device_protection_sema… in _ux_host_class_audio_control_request() 145 _ux_host_mutex_off(&audio -> ux_host_class_audio_mutex); in _ux_host_class_audio_control_request() [all …]
|