Sound Open Firmware
Loading...
Searching...
No Matches
fir.h
Go to the documentation of this file.
1/* SPDX-License-Identifier: BSD-3-Clause
2 *
3 * Copyright(c) 2017 Intel Corporation. All rights reserved.
4 *
5 * Author: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
6 */
7
8#ifndef __USER_FIR_H__
9#define __USER_FIR_H__
10
11#include <stdint.h>
12
13#define SOF_FIR_MAX_LENGTH 256 /* Max length for individual filter */
14
16 int16_t length; /* Number of FIR taps */
17 int16_t out_shift; /* Amount of right shifts at output */
18
19 /* reserved */
20 uint32_t reserved[4];
21
22 int16_t coef[]; /* FIR coefficients */
23} __attribute__((packed));
24
25/* In the struct above there's two 16 bit words (length, shift) and four
26 * reserved 32 bit words before the actual FIR coefficients. This information
27 * is used in parsing of the configuration blob.
28 */
29#define SOF_FIR_COEF_NHEADER \
30 (sizeof(struct sof_fir_coef_data) / sizeof(int16_t))
31
32#endif /* __USER_FIR_H__ */
Definition fir.h:15
int16_t coef[]
Definition fir.h:22
uint32_t reserved[4]
Definition fir.h:20
int16_t out_shift
Definition fir.h:17
int16_t length
Definition fir.h:16