16#ifndef __IPC_STREAM_H__
17#define __IPC_STREAM_H__
19#include <module/ipc/stream.h>
27#define SOF_RATE_8000 (1 << 0)
28#define SOF_RATE_11025 (1 << 1)
29#define SOF_RATE_12000 (1 << 2)
30#define SOF_RATE_16000 (1 << 3)
31#define SOF_RATE_22050 (1 << 4)
32#define SOF_RATE_24000 (1 << 5)
33#define SOF_RATE_32000 (1 << 6)
34#define SOF_RATE_44100 (1 << 7)
35#define SOF_RATE_48000 (1 << 8)
36#define SOF_RATE_64000 (1 << 9)
37#define SOF_RATE_88200 (1 << 10)
38#define SOF_RATE_96000 (1 << 11)
39#define SOF_RATE_176400 (1 << 12)
40#define SOF_RATE_192000 (1 << 13)
43#define SOF_RATE_CONTINUOUS (1 << 30)
44#define SOF_RATE_KNOT (1 << 31)
47#define SOF_PCM_FLAG_XRUN_STOP (1 << 0)
69} __attribute__((packed, aligned(4)));
90 uint16_t
chmap[SOF_IPC_MAX_CHANNELS];
92} __attribute__((packed, aligned(4)));
101} __attribute__((packed, aligned(4)));
108} __attribute__((packed, aligned(4)));
114} __attribute__((packed, aligned(4)));
117#define SOF_TIME_HOST_SYNC (1 << 0)
118#define SOF_TIME_DAI_SYNC (1 << 1)
119#define SOF_TIME_WALL_SYNC (1 << 2)
120#define SOF_TIME_STAMP_SYNC (1 << 3)
123#define SOF_TIME_HOST_VALID (1 << 8)
124#define SOF_TIME_DAI_VALID (1 << 9)
125#define SOF_TIME_WALL_VALID (1 << 10)
126#define SOF_TIME_STAMP_VALID (1 << 11)
129#define SOF_TIME_HOST_64 (1 << 16)
130#define SOF_TIME_DAI_64 (1 << 17)
131#define SOF_TIME_WALL_64 (1 << 18)
132#define SOF_TIME_STAMP_64 (1 << 19)
147} __attribute__((packed, aligned(4)));
sof_ipc_stream_direction
Definition stream.h:57
@ SOF_IPC_STREAM_CAPTURE
Definition stream.h:59
@ SOF_IPC_STREAM_PLAYBACK
Definition stream.h:58
sof_ipc_buffer_format
Definition stream.h:50
@ SOF_IPC_BUFFER_INTERLEAVED
Definition stream.h:51
@ SOF_IPC_BUFFER_NONINTERLEAVED
Definition stream.h:52
Command Header - Header for all IPC commands.
Definition header.h:357
Structure Header - Header for all IPC structures except command structs.
Definition header.h:347
struct sof_ipc_hdr hdr
Definition stream.h:64
uint32_t reserved[3]
Definition stream.h:68
uint32_t phy_addr
Definition stream.h:65
uint32_t size
Definition stream.h:67
uint32_t pages
Definition stream.h:66
uint32_t comp_id
Definition stream.h:106
struct sof_ipc_reply rhdr
Definition stream.h:105
uint32_t posn_offset
Definition stream.h:107
struct sof_ipc_stream_params params
Definition stream.h:100
uint32_t flags
generic PCM flags - SOF_PCM_FLAG_
Definition stream.h:98
uint32_t comp_id
Definition stream.h:97
uint32_t reserved[2]
Definition stream.h:99
struct sof_ipc_cmd_hdr hdr
Definition stream.h:96
Generic reply message.
Definition header.h:366
uint16_t channels
Definition stream.h:79
uint32_t direction
enum sof_ipc_stream_direction
Definition stream.h:74
uint16_t sample_valid_bytes
Definition stream.h:80
uint16_t sample_container_bytes
Definition stream.h:81
uint32_t buffer_fmt
enum sof_ipc_buffer_format
Definition stream.h:76
uint32_t rate
Definition stream.h:77
uint8_t reserved[2]
Definition stream.h:89
uint16_t stream_tag
Definition stream.h:78
struct sof_ipc_hdr hdr
Definition stream.h:72
uint16_t no_stream_position
1 means don't send stream position
Definition stream.h:84
uint32_t frame_fmt
enum sof_ipc_frame
Definition stream.h:75
int8_t data[]
extended data
Definition stream.h:91
uint32_t host_period_bytes
Definition stream.h:83
uint8_t cont_update_posn
1 means continuous update stream position
Definition stream.h:85
uint16_t ext_data_length
0 means no extended data
Definition stream.h:87
uint16_t chmap[SOF_IPC_MAX_CHANNELS]
channel map - SOF_CHMAP_
Definition stream.h:90
struct sof_ipc_host_buffer buffer
Definition stream.h:73
uint8_t reserved0
Definition stream.h:86
uint64_t comp_posn
comp position in bytes
Definition stream.h:142
uint64_t host_posn
host DMA position in bytes
Definition stream.h:140
uint32_t wallclock_hz
frequency of wallclock in Hz
Definition stream.h:138
uint64_t dai_posn
DAI DMA position in bytes.
Definition stream.h:141
uint32_t timestamp_ns
resolution of timestamp in ns
Definition stream.h:139
int32_t xrun_size
XRUN size in bytes.
Definition stream.h:146
struct sof_ipc_reply rhdr
Definition stream.h:135
uint64_t wallclock
audio wall clock
Definition stream.h:143
uint32_t flags
SOF_TIME_.
Definition stream.h:137
uint64_t timestamp
system time stamp
Definition stream.h:144
uint32_t comp_id
host component ID
Definition stream.h:136
uint32_t xrun_comp_id
comp ID of XRUN component
Definition stream.h:145
uint32_t comp_id
Definition stream.h:113
struct sof_ipc_cmd_hdr hdr
Definition stream.h:112