Sound Open Firmware
Loading...
Searching...
No Matches
iir_df1.h File Reference
Include dependency graph for iir_df1.h:

Go to the source code of this file.

Data Structures

struct  iir_state_df1

Macros

#define IIR_DF1_NUM_STATE   4
#define SOF_IIR_DF1_4TH_NUM_BIQUADS   2

Functions

int iir_init_coef_df1 (struct iir_state_df1 *iir, struct sof_eq_iir_header *config)
int iir_delay_size_df1 (struct sof_eq_iir_header *config)
void iir_init_delay_df1 (struct iir_state_df1 *iir, int32_t **state)
void iir_reset_df1 (struct iir_state_df1 *iir)
int32_t iir_df1 (struct iir_state_df1 *iir, int32_t x)
 Calculate IIR filter consisting of biquads.
int32_t iir_df1_4th (struct iir_state_df1 *iir, int32_t x)
 Calculate IIR filter consisting of biquads, special simplified version for 4th order filter with two biquads in series.

Macro Definition Documentation

◆ IIR_DF1_NUM_STATE

#define IIR_DF1_NUM_STATE   4

◆ SOF_IIR_DF1_4TH_NUM_BIQUADS

#define SOF_IIR_DF1_4TH_NUM_BIQUADS   2

Function Documentation

◆ iir_delay_size_df1()

int iir_delay_size_df1 ( struct sof_eq_iir_header * config)

◆ iir_df1()

int32_t iir_df1 ( struct iir_state_df1 * iir,
int32_t x )

Calculate IIR filter consisting of biquads.

Parameters
iirIIR state with configured biquad coefficients and delay lines data
xSingle s32 Q1.31 format input sample
Returns
Single s32 Q1.31 format output samples

◆ iir_df1_4th()

int32_t iir_df1_4th ( struct iir_state_df1 * iir,
int32_t x )

Calculate IIR filter consisting of biquads, special simplified version for 4th order filter with two biquads in series.

Note: There are no checks for iir struct members.

Parameters
iirIIR state with configured biquad coefficients and delay lines data
xSingle s32 Q1.31 format input sample
Returns
Single s32 Q1.31 format output samples

◆ iir_init_coef_df1()

int iir_init_coef_df1 ( struct iir_state_df1 * iir,
struct sof_eq_iir_header * config )

◆ iir_init_delay_df1()

void iir_init_delay_df1 ( struct iir_state_df1 * iir,
int32_t ** state )

◆ iir_reset_df1()

void iir_reset_df1 ( struct iir_state_df1 * iir)