Home
last modified time | relevance | path

Searched refs:eq2 (Results 1 – 7 of 7) sorted by relevance

/device/google/dragon/audio/hal/dsp/tests/
Deq2_test.c28 static void process(struct eq2 *eq2, float *data0, float *data1, int count) in process() argument
32 eq2_process(eq2, data0 + start, data1 + start, in process()
43 struct eq2 *eq2; in test_file() local
52 eq2 = eq2_new(); in test_file()
53 eq2_append_biquad(eq2, 0, BQ_PEAKING, 380/NQ, 3, -10); in test_file()
54 eq2_append_biquad(eq2, 0, BQ_PEAKING, 720/NQ, 3, -12); in test_file()
55 eq2_append_biquad(eq2, 0, BQ_PEAKING, 1705/NQ, 3, -8); in test_file()
56 eq2_append_biquad(eq2, 0, BQ_HIGHPASS, 218/NQ, 0.7, -10.2); in test_file()
57 eq2_append_biquad(eq2, 0, BQ_PEAKING, 580/NQ, 6, -8); in test_file()
58 eq2_append_biquad(eq2, 0, BQ_HIGHSHELF, 8000/NQ, 3, 2); in test_file()
[all …]
/device/google/dragon/audio/hal/dsp/
Deq2.h21 struct eq2;
24 struct eq2 *eq2_new();
27 void eq2_free(struct eq2 *eq2);
42 int eq2_append_biquad(struct eq2 *eq2, int channel,
55 int eq2_append_biquad_direct(struct eq2 *eq2, int channel,
65 void eq2_process(struct eq2 *eq2, float *data0, float *data1, int count);
Deq2.c9 struct eq2 { struct
14 struct eq2 *eq2_new() in eq2_new() argument
16 struct eq2 *eq2 = (struct eq2 *)calloc(1, sizeof(*eq2)); in eq2_new() local
23 biquad_set(&eq2->biquad[i][j], BQ_NONE, 0, 0, 0); in eq2_new()
25 return eq2; in eq2_new()
28 void eq2_free(struct eq2 *eq2) in eq2_free() argument
30 free(eq2); in eq2_free()
33 int eq2_append_biquad(struct eq2 *eq2, int channel, in eq2_append_biquad() argument
36 if (eq2->n[channel] >= MAX_BIQUADS_PER_EQ2) in eq2_append_biquad()
38 biquad_set(&eq2->biquad[eq2->n[channel]++][channel], type, freq, Q, in eq2_append_biquad()
[all …]
Ddrc.h120 struct eq2 *emphasis_eq;
121 struct eq2 *deemphasis_eq;
/device/google/dragon/audio/hal/
Dcras_dsp_mod_builtin.c223 struct eq2 *eq2; /* Initialized in the first call of eq2_run() */ member
249 if (!data->eq2) { in eq2_run()
253 data->eq2 = eq2_new(); in eq2_run()
263 eq2_append_biquad(data->eq2, channel, type, in eq2_run()
277 eq2_process(data->eq2, data->ports[2], data->ports[3], in eq2_run()
284 if (data->eq2) in eq2_deinstantiate()
285 eq2_free(data->eq2); in eq2_deinstantiate()
DAndroid.mk16 dsp/eq2.c \
/device/google/dragon/
Dspeakerdsp.ini49 [eq2] section
51 label=eq2 argument