Dynamic pipeline buffer extraction and injection probes, probe DMA frames, and synchronization sync words.
More...
|
| file | probe_dma_frame.h |
| | Audio probe extraction stream packet frame headers and format bitfield encoding.
|
| |
| file | probe.h |
| | IPC3 Audio probe points, DMA descriptors, and configuration commands.
|
| |
| file | probe.h |
| | Audio probe injection and extraction tap points and DMA manager.
|
| |
|
| typedef ssize_t(* | probe_logging_hook_t) (uint8_t *buffer, size_t length) |
| | Callback hook invoked when a chunk of probe logging data is ready.
|
| |
Dynamic pipeline buffer extraction and injection probes, probe DMA frames, and synchronization sync words.
◆ probe_logging_hook_t
| typedef ssize_t(* probe_logging_hook_t) (uint8_t *buffer, size_t length) |
Callback hook invoked when a chunk of probe logging data is ready.
- Parameters
-
| buffer | Pointer to raw probe buffer payload. |
| length | Byte length of data available. |
- Returns
- Number of bytes processed, or negative error code.
◆ probe_deinit()
| int probe_deinit |
( |
void |
| ) |
|
Deinitialize the probes subsystem and detach extraction DMA.
- Returns
- 0 on success, or -EINVAL if active probe points remain connected.
◆ probe_dma_add()
| int probe_dma_add |
( |
uint32_t |
count, |
|
|
const struct probe_dma * |
probe_dma |
|
) |
| |
Configure injection DMA channels for inserting audio streams into pipelines.
- Parameters
-
| [in] | count | Number of DMA descriptors provided in array. |
| [in] | probe_dma | Array of probe DMA descriptors specifying stream tags and buffer sizes. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_dma_info()
Query configuration information for active injection DMAs.
- Parameters
-
| [out] | data | Reply payload structure populated with connected DMA details. |
| [in] | max_size | Maximum available capacity in data buffer in bytes. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_dma_remove()
| int probe_dma_remove |
( |
uint32_t |
count, |
|
|
const uint32_t * |
stream_tag |
|
) |
| |
Disconnect and remove active injection DMA channels.
- Parameters
-
| [in] | count | Number of stream tags in array. |
| [in] | stream_tag | Array of host DMA stream tags to remove. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_get()
| static struct probe_pdata * probe_get |
( |
void |
| ) |
|
|
inlinestatic |
Retrieve global probes private data context from SOF runtime.
- Returns
- Pointer to struct probe_pdata.
◆ probe_init()
| int probe_init |
( |
const struct probe_dma * |
extraction_probe_dma | ) |
|
Initialize the audio probes subsystem.
- Parameters
-
| [in] | extraction_probe_dma | Host DMA channel configured for data extraction, or NULL if extraction probes are not used. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_logging_init()
Initialize the probe logging backend.
- Parameters
-
| hook | Callback invoked when new logging data is written out. |
◆ probe_point_add()
| int probe_point_add |
( |
uint32_t |
count, |
|
|
const struct probe_point * |
probe |
|
) |
| |
Attach probe points to audio pipeline buffers for stream tap/injection.
- Parameters
-
| [in] | count | Number of probe points in array. |
| [in] | probe | Array of probe point descriptors specifying buffer IDs and purpose. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_point_info()
Query configuration of currently active probe points.
- Parameters
-
| [out] | data | Reply payload structure populated with connected probe points. |
| [in] | max_size | Maximum available capacity in data buffer in bytes. |
- Returns
- 0 on success, or negative error code on failure.
◆ probe_point_remove()
| int probe_point_remove |
( |
uint32_t |
count, |
|
|
const uint32_t * |
buffer_id |
|
) |
| |
Detach and remove probe points from pipeline buffers.
- Parameters
-
| [in] | count | Number of buffer IDs in array. |
| [in] | buffer_id | Array of buffer IDs from which probe points should be detached. |
- Returns
- 0 on success, or negative error code on failure.