16#ifndef __SOF_LIB_DAI_ZEPHYR_H__
17#define __SOF_LIB_DAI_ZEPHYR_H__
27#include <sof/trace/trace.h>
36#include <zephyr/device.h>
37#include <zephyr/drivers/dai.h>
47#define DAI_CREAT BIT(0)
54 const struct device *
dev;
114 unsigned int frames);
163#if CONFIG_XRUN_NOTIFICATIONS_ENABLE
164 bool xrun_notification_sent;
166#ifdef CONFIG_SOF_TELEMETRY_IO_PERFORMANCE_MEASUREMENTS
168 struct io_perf_data_item *io_perf_dai_byte_count;
205 uint32_t mask, uint32_t
value)
263 const void *spec_config,
size_t size);
295 const void *spec_config);
340#include <zephyr/syscalls/dai-zephyr.h>
Component API definition.
Memory attributes, cold/hot execution paths, and platform memory inclusions.
PCM converter header file.
int(* pcm_converter_func)(const struct cir_buf_source *source, uint32_t src_channels, struct cir_buf_sink *sink, uint32_t sink_channels, size_t source_samples, uint32_t chmap)
PCM conversion function interface for data in circular buffer.
Definition pcm_converter.h:53
Sound Open Firmware global runtime context.
RTOS spinlock primitives and initialization.
sof_ipc_dai_type
Types of DAI.
Definition dai.h:82
Audio stream is a circular buffer aware of audio format of the data in the buffer so provides API for...
Definition audio_stream.h:51
Audio component interconnect buffer connecting two pipeline components.
Definition buffer.h:150
Audio component base device "class" used by all other component types.
Definition component.h:587
DAI runtime data.
Definition dai-zephyr.h:119
struct sof_dma * dma
Definition dai-zephyr.h:130
struct comp_buffer * dma_buffer
Definition dai-zephyr.h:126
struct dai_group * group
Definition dai-zephyr.h:131
struct ipc_config_dai ipc_config
Definition dai-zephyr.h:145
struct mod_alloc_ctx alloc_ctx
Definition dai-zephyr.h:173
bool delayed_dma_stop
Definition dai-zephyr.h:157
int xrun
Definition dai-zephyr.h:132
uint32_t stream_id
Definition dai-zephyr.h:122
struct dai * dai
Definition dai-zephyr.h:129
struct dma_sg_config config
Definition dai-zephyr.h:123
channel_copy_func channel_copy
Definition dai-zephyr.h:137
uint32_t chmap
Definition dai-zephyr.h:135
struct llp_slot_info slot_info
Definition dai-zephyr.h:160
pcm_converter_func process
Definition dai-zephyr.h:134
uint32_t period_bytes
Definition dai-zephyr.h:142
struct dai_ts_cfg ts_config
Definition dai-zephyr.h:128
struct comp_dev * dai_dev
Definition dai-zephyr.h:125
struct copier_gain_params * gain_data
Definition dai-zephyr.h:171
void * dai_spec_config
Definition dai-zephyr.h:146
bool fast_mode
Definition dai-zephyr.h:162
uint64_t total_data_processed
Definition dai-zephyr.h:143
struct comp_buffer * local_buffer
Definition dai-zephyr.h:127
uint64_t wallclock
Definition dai-zephyr.h:148
struct dma_config * z_config
Definition dai-zephyr.h:124
int chan_index
Definition dai-zephyr.h:121
DAI group information.
Definition dai-zephyr.h:72
int trigger_cmd
Trigger command to propagate.
Definition dai-zephyr.h:91
uint32_t trigger_counter
Number of DAIs to receive a trigger before processing begins.
Definition dai-zephyr.h:86
uint32_t num_dais
Number of DAIs in this group.
Definition dai-zephyr.h:81
struct list_item list
Group list.
Definition dai-zephyr.h:101
int trigger_ret
Last trigger error.
Definition dai-zephyr.h:96
uint32_t group_id
Group ID.
Definition dai-zephyr.h:76
Definition dai-zephyr.h:49
uint32_t index
Definition dai-zephyr.h:50
uint32_t dma_caps
Definition dai-zephyr.h:52
const struct dai_data * dd
Definition dai-zephyr.h:55
struct k_spinlock lock
Definition dai-zephyr.h:56
uint32_t dma_dev
Definition dai-zephyr.h:53
const struct device * dev
Definition dai-zephyr.h:54
uint32_t type
Definition dai-zephyr.h:51
Definition ipc-config.h:65
llp slot info for memory window
Definition dai-zephyr.h:107
uint32_t reg_offset
Definition dai-zephyr.h:109
uint32_t node_id
Definition dai-zephyr.h:108
Module and pipeline allocation context aggregating a Zephyr heap and optional virtual region.
Definition alloc.h:251
General firmware context.
Definition sof.h:50
Definition dai-zephyr.h:59
uint16_t full
Definition dai-zephyr.h:60
uint16_t dir
Definition dai-zephyr.h:66
struct hdalink_cfg::@153 part
uint16_t rsvd
Definition dai-zephyr.h:65
uint16_t lchan
Definition dai-zephyr.h:62
uint16_t hchan
Definition dai-zephyr.h:63
uint16_t stream
Definition dai-zephyr.h:64