Sound Open Firmware
Loading...
Searching...
No Matches
base-config.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause */
2/*
3 * Copyright(c) 2021 - 2023 Intel Corporation. All rights reserved.
4 */
5
6/*
7 * This file contains structures that are exact copies of an existing ABI used
8 * by IOT middleware. They are Intel specific and will be used by one middleware.
9 *
10 * Some of the structures may contain programming implementations that makes them
11 * unsuitable for generic use and general usage.
12 *
13 * This code is mostly copied "as-is" from existing C++ interface files hence the use of
14 * different style in places. The intention is to keep the interface as close as possible to
15 * original so it's easier to track changes with IPC host code.
16 */
17
25#ifndef __SOF_IPC4_BASE_CONFIG_H__
26#define __SOF_IPC4_BASE_CONFIG_H__
27
30
32
40 struct sof_ipc_stream_params *params);
41
49 struct sof_ipc_stream_params *params);
50
51struct comp_buffer;
52
60 const struct ipc4_audio_format *fmt);
61
62struct sof_source;
63
71 const struct ipc4_audio_format *fmt);
72
73struct sof_sink;
74
82 const struct ipc4_audio_format *fmt);
83
84#endif
void ipc4_update_buffer_format(struct comp_buffer *buf_c, const struct ipc4_audio_format *fmt)
Apply an IPC4 audio format configuration to an intermediate component buffer.
void ipc4_update_source_format(struct sof_source *source, const struct ipc4_audio_format *fmt)
Apply an IPC4 audio format configuration to an audio streaming source endpoint.
void ipc4_audio_format_to_stream_params(const struct ipc4_audio_format *audio_fmt, struct sof_ipc_stream_params *params)
Convert an IPC4 audio format descriptor to internal SOF stream parameters.
void ipc4_update_sink_format(struct sof_sink *sink, const struct ipc4_audio_format *fmt)
Apply an IPC4 audio format configuration to an audio streaming sink endpoint.
void ipc4_base_module_cfg_to_stream_params(const struct ipc4_base_module_cfg *base_cfg, struct sof_ipc_stream_params *params)
Convert an IPC4 base module configuration structure to internal SOF stream parameters.
IPC4 audio formats, sampling frequencies, bit depths, and pin descriptors.
Audio component interconnect buffer connecting two pipeline components.
Definition buffer.h:150
Standard audio format descriptor across all IPC4 modules and gateways.
Definition base-config.h:144
Base module configuration parameters provided upon module instantiation.
Definition base-config.h:160
Definition stream.h:71
internals of sink API.
Definition sink_api.h:141
internals of source API.
Definition source_api.h:137