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
15
struct
sof_fir_coef_data
{
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__ */
sof_fir_coef_data
Definition
fir.h:15
sof_fir_coef_data::coef
int16_t coef[]
Definition
fir.h:22
sof_fir_coef_data::reserved
uint32_t reserved[4]
Definition
fir.h:20
sof_fir_coef_data::out_shift
int16_t out_shift
Definition
fir.h:17
sof_fir_coef_data::length
int16_t length
Definition
fir.h:16
src
include
user
fir.h
Generated by
1.15.0