3.3.4.6 USB_HOST_AUDIO_V1_EntityRequestCallbackSet Function

C

USB_HOST_AUDIO_V1_RESULT USB_HOST_AUDIO_V1_EntityRequestCallbackSet(
    USB_HOST_AUDIO_V1_OBJ audioDeviceObj, 
    USB_HOST_AUDIO_V1_ENTITY_REQUEST_CALLBACK appAudioEntityRequestCallback, 
    uintptr_t context
);

Summary

This function registers a callback function for the Audio v1.0 control entity requests. The Audio v1.0 Host Client Driver will call this callback function when an audio entity control request is completed.

Precondition

None.

Parameters

Parameters Description
audioDeviceObj Audio v1.0 device object.
appAudioEntityRequestCallback A pointer to event handler function. If NULL, events will not be generated.
context Application specific context that is returned in the event handler.

Returns

  • USB_HOST_AUDIO_V1_RESULT_SUCCESS - The operation was successful
  • USB_HOST_AUDIO_V1_RESULT_OBJ_INVALID - The specified audio object does not exist
  • USB_HOST_AUDIO_V1_RESULT_FAILURE - An unknown failure occurred

Remarks

None.