Sound Open Firmware
Loading...
Searching...
No Matches
iir_df2t.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 * Liam Girdwood <liam.r.girdwood@linux.intel.com>
7 * Keyon Jie <yang.jie@linux.intel.com>
8 */
9
10#ifndef __SOF_MATH_IIR_DF2T_H__
11#define __SOF_MATH_IIR_DF2T_H__
12
13#include <stddef.h>
14#include <stdint.h>
15#include <sof/common.h>
16
17#define IIR_DF2T_NUM_DELAYS 2
18
20 unsigned int biquads; /* Number of IIR 2nd order sections total */
21 unsigned int biquads_in_series; /* Number of IIR 2nd order sections
22 * in series.
23 */
24 int32_t *coef; /* Pointer to IIR coefficients */
25 int64_t *delay; /* Pointer to IIR delay line */
26};
27
29
31 struct sof_eq_iir_header *config);
32
34
35void iir_init_delay_df2t(struct iir_state_df2t *iir, int64_t **delay);
36
37void iir_mute_df2t(struct iir_state_df2t *iir);
38
40
42
43int32_t iir_df2t(struct iir_state_df2t *iir, int32_t x);
44
45/* Inline functions with or without HiFi3 intrinsics */
46#if SOF_USE_HIFI(3, FILTER) || SOF_USE_HIFI(4, FILTER)
47#include "iir_df2t_hifi3.h"
48#else
49#include "iir_df2t_generic.h"
50#endif
51
52#endif /* __SOF_MATH_IIR_DF2T_H__ */
void iir_unmute_df2t(struct iir_state_df2t *iir)
int iir_init_coef_df2t(struct iir_state_df2t *iir, struct sof_eq_iir_header *config)
int iir_delay_size_df2t(struct sof_eq_iir_header *config)
int32_t iir_df2t(struct iir_state_df2t *iir, int32_t x)
void iir_init_delay_df2t(struct iir_state_df2t *iir, int64_t **delay)
void iir_reset_df2t(struct iir_state_df2t *iir)
void iir_mute_df2t(struct iir_state_df2t *iir)
Definition iir_df2t.h:19
unsigned int biquads
Definition iir_df2t.h:20
int32_t * coef
Definition iir_df2t.h:24
int64_t * delay
Definition iir_df2t.h:25
unsigned int biquads_in_series
Definition iir_df2t.h:21
Definition eq.h:117