8#ifndef __SOF_MATH_FIR_HIFI2EP_H__
9#define __SOF_MATH_FIR_HIFI2EP_H__
14#if SOF_USE_HIFI(2, FILTER)
19#include <xtensa/config/defs.h>
20#include <xtensa/tie/xt_hifi2.h>
24struct sof_eq_fir_coef_data;
26struct fir_state_32x16 {
36void fir_reset(
struct fir_state_32x16 *fir);
40int fir_init_coef(
struct fir_state_32x16 *fir,
43void fir_init_delay(
struct fir_state_32x16 *fir, int32_t **
data);
46static inline void fir_hifiep_setup_circular(
struct fir_state_32x16 *fir)
48 AE_SETCBEGIN0(fir->delay);
49 AE_SETCEND0(fir->delay_end);
52void fir_get_lrshifts(
struct fir_state_32x16 *fir,
int *lshift,
55void fir_32x16(
struct fir_state_32x16 *fir, int32_t x, int32_t *y,
int lshift,
int rshift);
57void fir_32x16_2x(
struct fir_state_32x16 *fir, int32_t x0, int32_t x1,
58 int32_t *y0, int32_t *y1,
int lshift,
int rshift);
Audio Stream API definition.
uint32_t data[]
Definition debug_stream_slot.h:2
uint32_t length
Definition tlv.h:1