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

Go to the source code of this file.

Data Structures

struct  crossover_state
 Stores the state of one channel of the Crossover filter. More...
 

Macros

#define CROSSOVER_2WAY_NUM_SINKS   2
 
#define CROSSOVER_3WAY_NUM_SINKS   3
 
#define CROSSOVER_4WAY_NUM_SINKS   4
 
#define CROSSOVER_NUM_DELAYS_LR4   4
 
#define CROSSOVER_MAX_LR4   3
 
#define SOF_CROSSOVER_MAX_STREAMS   4
 

Typedefs

typedef void(* crossover_split) (int32_t in, int32_t out[], struct crossover_state *state)
 

Functions

int crossover_init_coef_ch (struct processing_module *mod, struct sof_eq_iir_biquad *coef, struct crossover_state *ch_state, int32_t num_sinks)
 
static void crossover_reset_state_lr4 (struct processing_module *mod, struct iir_state_df1 *lr4)
 Reset the state of an LR4 filter.
 
static void crossover_reset_state_ch (struct processing_module *mod, struct crossover_state *ch_state)
 Reset the state (coefficients and delay) of the crossover filter of a single channel.
 
static crossover_split crossover_find_split_func (int32_t num_sinks)
 Returns Crossover split function.
 

Variables

const crossover_split crossover_split_fnmap []
 

Macro Definition Documentation

◆ CROSSOVER_2WAY_NUM_SINKS

#define CROSSOVER_2WAY_NUM_SINKS   2

◆ CROSSOVER_3WAY_NUM_SINKS

#define CROSSOVER_3WAY_NUM_SINKS   3

◆ CROSSOVER_4WAY_NUM_SINKS

#define CROSSOVER_4WAY_NUM_SINKS   4

◆ CROSSOVER_MAX_LR4

#define CROSSOVER_MAX_LR4   3

◆ CROSSOVER_NUM_DELAYS_LR4

#define CROSSOVER_NUM_DELAYS_LR4   4

◆ SOF_CROSSOVER_MAX_STREAMS

#define SOF_CROSSOVER_MAX_STREAMS   4

Typedef Documentation

◆ crossover_split

typedef void(* crossover_split) (int32_t in, int32_t out[], struct crossover_state *state)

Function Documentation

◆ crossover_find_split_func()

static crossover_split crossover_find_split_func ( int32_t  num_sinks)
inlinestatic

Returns Crossover split function.

◆ crossover_init_coef_ch()

int crossover_init_coef_ch ( struct processing_module *  mod,
struct sof_eq_iir_biquad *  coef,
struct crossover_state *  ch_state,
int32_t  num_sinks 
)

◆ crossover_reset_state_ch()

static void crossover_reset_state_ch ( struct processing_module *  mod,
struct crossover_state *  ch_state 
)
inlinestatic

Reset the state (coefficients and delay) of the crossover filter of a single channel.

◆ crossover_reset_state_lr4()

static void crossover_reset_state_lr4 ( struct processing_module *  mod,
struct iir_state_df1 *  lr4 
)
inlinestatic

Reset the state of an LR4 filter.

Variable Documentation

◆ crossover_split_fnmap

const crossover_split crossover_split_fnmap[]
extern