Lines Matching refs:bq
26 static inline void biquad2_init(struct biquad2_state *bq, in biquad2_init() argument
29 bq->gain = gain; in biquad2_init()
30 bq->a1 = a1; in biquad2_init()
31 bq->a2 = a2; in biquad2_init()
32 bq->b1 = b1; in biquad2_init()
33 bq->b2 = b2; in biquad2_init()
35 bq->z1 = 0; in biquad2_init()
36 bq->z2 = 0; in biquad2_init()
39 static inline int16_t biquad2(struct biquad2_state *bq, int16_t sample) in biquad2() argument
44 z0 = sample * bq->gain + bq->z1 * bq->a1 + bq->z2 * bq->a2; in biquad2()
45 y = z0 + bq->z1 * bq->b1 + bq->z2 * bq->b2; in biquad2()
47 bq->z2 = bq->z1; in biquad2()
48 bq->z1 = z0 >> 15; in biquad2()