|
Zephyr API Documentation 4.5.99
A Scalable Open Source RTOS
|
Public APIs for USB Audio Offload Link (UAOL) drivers. More...
Go to the source code of this file.
Data Structures | |
| struct | uaol_capabilities |
| UAOL hardware capabilities. More... | |
| struct | uaol_config |
| UAOL stream configuration data. More... | |
| struct | uaol_ep_table_entry |
| UAOL stream endpoint table entry. More... | |
Enumerations | |
| enum | uaol_direction { UAOL_DIR_PLAYBACK = 0 , UAOL_DIR_CAPTURE = 1 } |
| UAOL stream/endpoint direction. More... | |
| enum | uaol_device_speed { UAOL_DEVICE_SPEED_FULL = 0 , UAOL_DEVICE_SPEED_HIGH = 1 } |
| UAOL device speed. More... | |
Functions | |
| static int | uaol_config (const struct device *dev, int stream, struct uaol_config *cfg) |
| Set UAOL individual stream configuration. | |
| static int | uaol_start (const struct device *dev, int stream) |
| Start UAOL individual stream operation. | |
| static int | uaol_stop (const struct device *dev, int stream) |
| Stop UAOL individual stream operation. | |
| static int | uaol_program_ep_table (const struct device *dev, int stream, struct uaol_ep_table_entry entry, bool valid) |
| Program an endpoint table entry for UAOL individual stream. | |
| static int | uaol_get_capabilities (const struct device *dev, struct uaol_capabilities *caps) |
| Query UAOL hardware capabilities. | |
| int | uaol_adjust_rate (const struct device *dev, int stream, bool increase) |
| Perform a one-time rate adjustment for UAOL stream. | |
| int | uaol_interpret_feedback_value (const struct device *dev, int stream, uint32_t feedback_value) |
| Convert a raw feedback endpoint value to a frequency. | |
| int | uaol_get_mapped_hda_link_stream_id (const struct device *dev, int uaol_stream_id) |
| Get the HDA link stream ID mapped in HW to the UAOL stream ID. | |
Public APIs for USB Audio Offload Link (UAOL) drivers.
| enum uaol_device_speed |
| enum uaol_direction |
Perform a one-time rate adjustment for UAOL stream.
In the next service interval, the stream transfers one audio frame more or one audio frame less than its nominal rate gives.
| dev | UAOL device instance. |
| stream | UAOL stream index. |
| increase | true to add one frame, false to drop one frame. |
|
inlinestatic |
Set UAOL individual stream configuration.
| dev | UAOL device instance. |
| stream | UAOL stream index. |
| cfg | Configuration to be applied. |
|
inlinestatic |
Query UAOL hardware capabilities.
| dev | UAOL device instance. |
| caps | Capabilities data to be returned. |
| int uaol_get_mapped_hda_link_stream_id | ( | const struct device * | dev, |
| int | uaol_stream_id ) |
Get the HDA link stream ID mapped in HW to the UAOL stream ID.
Can be called anytime, e.g., before the device probe.
| dev | UAOL device instance. |
| uaol_stream_id | UAOL stream ID. |
| int uaol_interpret_feedback_value | ( | const struct device * | dev, |
| int | stream, | ||
| uint32_t | feedback_value ) |
Convert a raw feedback endpoint value to a frequency.
The value format depends on the USB device speed set with uaol_config().
| dev | UAOL device instance. |
| stream | UAOL stream index. |
| feedback_value | Raw value read from the USB feedback endpoint. |
|
inlinestatic |
Program an endpoint table entry for UAOL individual stream.
| dev | UAOL device instance. |
| stream | UAOL stream index. |
| entry | Data to be stored in EP table. |
| valid | Flag marking an entry as valid or invalid. |
|
inlinestatic |
Start UAOL individual stream operation.
| dev | UAOL device instance. |
| stream | UAOL stream index. |
|
inlinestatic |
Stop UAOL individual stream operation.
| dev | UAOL device instance. |
| stream | UAOL stream index. |