Sound Open Firmware
Loading...
Searching...
No Matches
probe_dma_frame.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2022 Intel Corporation. All rights reserved.
4 */
5
6#ifndef __IPC_PROBE_DMA_FRAME_H__
7#define __IPC_PROBE_DMA_FRAME_H__
8
9#include <rtos/bit.h>
10
15 uint32_t sync_word;
16 uint32_t buffer_id;
17 uint32_t format;
18 uint32_t timestamp_low;
19 uint32_t timestamp_high;
20 uint32_t data_size_bytes;
21 uint8_t data[];
22} __attribute__((packed, aligned(4)));
23
24#define PROBE_EXTRACT_SYNC_WORD 0xBABEBEBA
25
61#define PROBE_SHIFT_FMT_TYPE 31
62#define PROBE_SHIFT_STANDARD_TYPE 27
63#define PROBE_SHIFT_AUDIO_FMT 23
64#define PROBE_SHIFT_SAMPLE_RATE 19
65#define PROBE_SHIFT_NB_CHANNELS 14
66#define PROBE_SHIFT_SAMPLE_SIZE 12
67#define PROBE_SHIFT_CONTAINER_SIZE 10
68#define PROBE_SHIFT_SAMPLE_FMT 9
69#define PROBE_SHIFT_SAMPLE_END 8
70#define PROBE_SHIFT_INTERLEAVING_ST 7
71
72#define PROBE_MASK_FMT_TYPE MASK(31, 31)
73#define PROBE_MASK_STANDARD_TYPE MASK(30, 27)
74#define PROBE_MASK_AUDIO_FMT MASK(26, 23)
75#define PROBE_MASK_SAMPLE_RATE MASK(22, 19)
76#define PROBE_MASK_NB_CHANNELS MASK(18, 14)
77#define PROBE_MASK_SAMPLE_SIZE MASK(13, 12)
78#define PROBE_MASK_CONTAINER_SIZE MASK(11, 10)
79#define PROBE_MASK_SAMPLE_FMT MASK(9, 9)
80#define PROBE_MASK_SAMPLE_END MASK(8, 8)
81#define PROBE_MASK_INTERLEAVING_ST MASK(7, 7)
82
83#endif
Header for data packets sent via compressed PCM from extraction probes.
Definition probe_dma_frame.h:14
uint32_t data_size_bytes
Size of following audio data.
Definition probe_dma_frame.h:20
uint32_t format
Encoded data format.
Definition probe_dma_frame.h:17
uint32_t timestamp_high
High 32 bits of timestamp in us.
Definition probe_dma_frame.h:19
uint32_t buffer_id
Buffer ID from which data was extracted.
Definition probe_dma_frame.h:16
uint32_t sync_word
PROBE_EXTRACT_SYNC_WORD.
Definition probe_dma_frame.h:15
uint32_t timestamp_low
Low 32 bits of timestamp in us.
Definition probe_dma_frame.h:18
uint8_t data[]
Audio data extracted from buffer.
Definition probe_dma_frame.h:21