|
Sound Open Firmware
|


Go to the source code of this file.
Data Structures | |
| struct | ipc_comp_dev |
Macros | |
| #define | ipc_to_pipe_new(x) |
| #define | ipc_to_pipe_connect(x) |
| #define | ipc_to_comp_new(x) |
| #define | COMP_TYPE_ANY 0 |
| #define | COMP_TYPE_COMPONENT 1 |
| #define | COMP_TYPE_BUFFER 2 |
| #define | COMP_TYPE_PIPELINE 3 |
| #define | IPC_COMP_ALL 0 |
| #define | IPC_COMP_IGNORE_REMOTE 1 |
| #define | ipc_get_comp_by_id(ipc, comp_id) |
| #define | ipc_get_pipeline_by_id(ipc, ppln_id) |
| #define | ipc_get_buffer_by_id(ipc, buf_id) |
Typedefs | |
| typedef uint32_t | ipc_pipe_new |
| typedef uint32_t | ipc_pipe_comp_connect |
| typedef uint32_t | ipc_comp |
Functions | |
| int | ipc_comp_new (struct ipc *ipc, ipc_comp *new) |
| Create a new IPC component. | |
| int | ipc_comp_free (struct ipc *ipc, uint32_t comp_id) |
| Free an IPC component. | |
| int | ipc_buffer_new (struct ipc *ipc, const struct sof_ipc_buffer *buffer) |
| Create a new IPC buffer. | |
| int | ipc_buffer_free (struct ipc *ipc, uint32_t buffer_id) |
| Free an IPC buffer. | |
| int | ipc_pipeline_new (struct ipc *ipc, ipc_pipe_new *pipeline) |
| Create a new IPC pipeline. | |
| int | ipc_pipeline_free (struct ipc *ipc, uint32_t comp_id) |
| Free an IPC pipeline. | |
| int | ipc_pipeline_complete (struct ipc *ipc, uint32_t comp_id) |
| Complete an IPC pipeline. | |
| int | ipc_comp_connect (struct ipc *ipc, ipc_pipe_comp_connect *connect) |
| Connect components together on a pipeline. | |
| int | ipc_comp_disconnect (struct ipc *ipc, ipc_pipe_comp_connect *connect) |
| Disconnect components in a pipeline. | |
| struct ipc_comp_dev * | ipc_get_comp_dev (struct ipc *ipc, uint16_t type, uint32_t id) |
| Get component device from component type and ID. | |
| struct ipc_comp_dev * | ipc_get_comp_by_ppl_id (struct ipc *ipc, uint16_t type, uint32_t ppl_id, uint32_t ignore_remote) |
| Get component device from pipeline ID and type. | |
| struct ipc_comp_dev * | ipc_get_ppl_comp (struct ipc *ipc, uint32_t pipeline_id, int dir) |
| Get buffer device from pipeline ID. | |
| int32_t | ipc_comp_pipe_id (const struct ipc_comp_dev *icd) |
| Get pipeline ID from component. | |
| int | ipc_comp_dai_config (struct ipc *ipc, struct ipc_config_dai *common_config, void *spec_config) |
| Configure all DAI components attached to DAI. | |
| int | comp_verify_params (struct comp_dev *dev, uint32_t flag, struct sof_ipc_stream_params *params) |
| int | comp_buffer_connect (struct comp_dev *comp, uint32_t comp_core, struct comp_buffer *buffer, uint32_t dir) |
| connect component and buffer | |
| #define COMP_TYPE_ANY 0 |
| #define COMP_TYPE_BUFFER 2 |
| #define COMP_TYPE_COMPONENT 1 |
| #define COMP_TYPE_PIPELINE 3 |
| #define IPC_COMP_ALL 0 |
| #define IPC_COMP_IGNORE_REMOTE 1 |
| #define ipc_get_buffer_by_id | ( | ipc, | |
| buf_id ) |
| #define ipc_get_comp_by_id | ( | ipc, | |
| comp_id ) |
| #define ipc_get_pipeline_by_id | ( | ipc, | |
| ppln_id ) |
| #define ipc_to_comp_new | ( | x | ) |
| #define ipc_to_pipe_connect | ( | x | ) |
| #define ipc_to_pipe_new | ( | x | ) |
| typedef uint32_t ipc_comp |
| typedef uint32_t ipc_pipe_comp_connect |
| typedef uint32_t ipc_pipe_new |
| int comp_buffer_connect | ( | struct comp_dev * | comp, |
| uint32_t | comp_core, | ||
| struct comp_buffer * | buffer, | ||
| uint32_t | dir ) |
connect component and buffer
| comp | Component dev |
| comp_core | comp core id |
| buffer | Component buffer |
| dir | connection direction |
| int comp_verify_params | ( | struct comp_dev * | dev, |
| uint32_t | flag, | ||
| struct sof_ipc_stream_params * | params ) |
| int ipc_buffer_free | ( | struct ipc * | ipc, |
| uint32_t | buffer_id ) |
Free an IPC buffer.
| ipc | The global IPC context. |
| buffer_id | buffer ID to free. |
| int ipc_buffer_new | ( | struct ipc * | ipc, |
| const struct sof_ipc_buffer * | buffer ) |
Create a new IPC buffer.
| ipc | The global IPC context. |
| buffer | New IPC buffer descriptor. |
| int ipc_comp_connect | ( | struct ipc * | ipc, |
| ipc_pipe_comp_connect * | connect ) |
Connect components together on a pipeline.
| ipc | The global IPC context. |
| connect | Components to connect together. |
| int ipc_comp_dai_config | ( | struct ipc * | ipc, |
| struct ipc_config_dai * | common_config, | ||
| void * | spec_config ) |
Configure all DAI components attached to DAI.
| ipc | Global IPC context. |
| common_config | Common DAI configuration. |
| spec_config | Specific DAI configuration. |
| int ipc_comp_disconnect | ( | struct ipc * | ipc, |
| ipc_pipe_comp_connect * | connect ) |
Disconnect components in a pipeline.
| ipc | The global IPC context. |
| connect | Components. |
| int ipc_comp_free | ( | struct ipc * | ipc, |
| uint32_t | comp_id ) |
Free an IPC component.
| ipc | The global IPC context. |
| comp_id | Component ID to free. |
Create a new IPC component.
| ipc | The global IPC context. |
| new | New IPC component descriptor. |
| int32_t ipc_comp_pipe_id | ( | const struct ipc_comp_dev * | icd | ) |
Get pipeline ID from component.
| icd | The component device. |
| struct ipc_comp_dev * ipc_get_comp_by_ppl_id | ( | struct ipc * | ipc, |
| uint16_t | type, | ||
| uint32_t | ppl_id, | ||
| uint32_t | ignore_remote ) |
Get component device from pipeline ID and type.
| ipc | The global IPC context. |
| type | The component type. |
| ppl_id | The pipeline ID. |
| ignore_remote | Omit component from different core if set to IPC_COMP_IGNORE_REMOTE |
| struct ipc_comp_dev * ipc_get_comp_dev | ( | struct ipc * | ipc, |
| uint16_t | type, | ||
| uint32_t | id ) |
Get component device from component type and ID.
| ipc | The global IPC context. |
| type | The component type |
| id | The component ID. |
| struct ipc_comp_dev * ipc_get_ppl_comp | ( | struct ipc * | ipc, |
| uint32_t | pipeline_id, | ||
| int | dir ) |
Get buffer device from pipeline ID.
| ipc | The global IPC context. |
| pipeline_id | The pipeline ID. |
| dir | Pipeline stream direction. |
| int ipc_pipeline_complete | ( | struct ipc * | ipc, |
| uint32_t | comp_id ) |
Complete an IPC pipeline.
| ipc | The global IPC context. |
| comp_id | Pipeline ID to complete. |
| int ipc_pipeline_free | ( | struct ipc * | ipc, |
| uint32_t | comp_id ) |
Free an IPC pipeline.
| ipc | The global IPC context. |
| comp_id | Pipeline ID to free. |
| int ipc_pipeline_new | ( | struct ipc * | ipc, |
| ipc_pipe_new * | pipeline ) |
Create a new IPC pipeline.
| ipc | The global IPC context. |
| pipeline | New IPC pipeline descriptor. |