• Home
  • Raw
  • Download

Lines Matching refs:bq

36 static void set_coefficient(struct biquad *bq, double b0, double b1, double b2,  in set_coefficient()  argument
40 bq->b0 = b0 * a0_inv; in set_coefficient()
41 bq->b1 = b1 * a0_inv; in set_coefficient()
42 bq->b2 = b2 * a0_inv; in set_coefficient()
43 bq->a1 = a1 * a0_inv; in set_coefficient()
44 bq->a2 = a2 * a0_inv; in set_coefficient()
47 static void biquad_lowpass(struct biquad *bq, double cutoff, double resonance) in biquad_lowpass() argument
57 set_coefficient(bq, cutoff, 0, 0, 1, 0, 0); in biquad_lowpass()
78 set_coefficient(bq, b0, b1, b2, 1, a1, a2); in biquad_lowpass()
81 static void biquad_highpass(struct biquad *bq, double cutoff, double resonance) in biquad_highpass() argument
93 set_coefficient(bq, 1 - cutoff, 0, 0, 1, 0, 0); in biquad_highpass()
114 set_coefficient(bq, b0, b1, b2, 1, a1, a2); in biquad_highpass()
117 static void biquad_bandpass(struct biquad *bq, double frequency, double Q) in biquad_bandpass() argument
132 set_coefficient(bq, 0, 0, 0, 1, 0, 0); in biquad_bandpass()
140 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_bandpass()
155 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_bandpass()
158 static void biquad_lowshelf(struct biquad *bq, double frequency, double db_gain) in biquad_lowshelf() argument
167 set_coefficient(bq, A * A, 0, 0, 1, 0, 0); in biquad_lowshelf()
172 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_lowshelf()
191 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_lowshelf()
194 static void biquad_highshelf(struct biquad *bq, double frequency, in biquad_highshelf() argument
204 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_highshelf()
209 set_coefficient(bq, A * A, 0, 0, 1, 0, 0); in biquad_highshelf()
228 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_highshelf()
231 static void biquad_peaking(struct biquad *bq, double frequency, double Q, in biquad_peaking() argument
244 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_peaking()
252 set_coefficient(bq, A * A, 0, 0, 1, 0, 0); in biquad_peaking()
267 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_peaking()
270 static void biquad_notch(struct biquad *bq, double frequency, double Q) in biquad_notch() argument
280 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_notch()
288 set_coefficient(bq, 0, 0, 0, 1, 0, 0); in biquad_notch()
303 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_notch()
306 static void biquad_allpass(struct biquad *bq, double frequency, double Q) in biquad_allpass() argument
316 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_allpass()
325 set_coefficient(bq, -1, 0, 0, 1, 0, 0); in biquad_allpass()
340 set_coefficient(bq, b0, b1, b2, a0, a1, a2); in biquad_allpass()
343 void biquad_set(struct biquad *bq, enum biquad_type type, double freq, double Q, in biquad_set() argument
347 set_coefficient(bq, 1, 0, 0, 1, 0, 0); in biquad_set()
348 bq->x1 = 0; in biquad_set()
349 bq->x2 = 0; in biquad_set()
350 bq->y1 = 0; in biquad_set()
351 bq->y2 = 0; in biquad_set()
355 biquad_lowpass(bq, freq, Q); in biquad_set()
358 biquad_highpass(bq, freq, Q); in biquad_set()
361 biquad_bandpass(bq, freq, Q); in biquad_set()
364 biquad_lowshelf(bq, freq, gain); in biquad_set()
367 biquad_highshelf(bq, freq, gain); in biquad_set()
370 biquad_peaking(bq, freq, Q, gain); in biquad_set()
373 biquad_notch(bq, freq, Q); in biquad_set()
376 biquad_allpass(bq, freq, Q); in biquad_set()