Home
last modified time | relevance | path

Searched refs:fir (Results 1 – 25 of 41) sorted by relevance

12

/sof-2.7.6/src/math/
Dfir_generic.c26 void fir_reset(struct fir_state_32x16 *fir) in fir_reset() argument
28 fir->rwi = 0; in fir_reset()
29 fir->length = 0; in fir_reset()
30 fir->out_shift = 0; in fir_reset()
31 fir->coef = NULL; in fir_reset()
48 int fir_init_coef(struct fir_state_32x16 *fir, in fir_init_coef() argument
51 fir->rwi = 0; in fir_init_coef()
52 fir->length = (int)config->length; in fir_init_coef()
53 fir->taps = fir->length; /* The same for generic C version */ in fir_init_coef()
54 fir->out_shift = (int)config->out_shift; in fir_init_coef()
[all …]
Dfir_hifi3.c24 void fir_reset(struct fir_state_32x16 *fir) in fir_reset() argument
26 fir->taps = 0; in fir_reset()
27 fir->length = 0; in fir_reset()
28 fir->out_shift = 0; in fir_reset()
29 fir->coef = NULL; in fir_reset()
51 int fir_init_coef(struct fir_state_32x16 *fir, in fir_init_coef() argument
59 fir->taps = (int)config->length; in fir_init_coef()
60 fir->length = fir->taps + 2; in fir_init_coef()
61 fir->out_shift = (int)config->out_shift; in fir_init_coef()
62 fir->coef = (ae_f16x4 *)&config->coef[0]; in fir_init_coef()
[all …]
Dfir_hifi2ep.c24 void fir_reset(struct fir_state_32x16 *fir) in fir_reset() argument
26 fir->taps = 0; in fir_reset()
27 fir->length = 0; in fir_reset()
28 fir->out_shift = 0; in fir_reset()
29 fir->coef = NULL; in fir_reset()
50 int fir_init_coef(struct fir_state_32x16 *fir, in fir_init_coef() argument
58 fir->taps = (int)config->length; in fir_init_coef()
59 fir->length = fir->taps + 2; in fir_init_coef()
60 fir->out_shift = (int)config->out_shift; in fir_init_coef()
61 fir->coef = (ae_p16x2s *)&config->coef[0]; in fir_init_coef()
[all …]
/sof-2.7.6/tools/tune/dmic/
Ddmic_fir_export.m3 % success=pdm_export_coef(fir, hdir)
5 % fir - fir definition struct
14 function success = dmic_fir_export(fir, hdir)
20 pbi = round(fir.cp*1e4);
21 sbi = round(fir.cs*1e4);
22 rpi = round(fir.rp*1e2);
23 rsi = round(fir.rs);
25 hfn = sprintf('%s/pdm_decim_int32_%02d_%04d_%04d_%03d_%03d.h', hdir, fir.m, pbi, sbi, rpi, rsi);
26 vfn = sprintf('fir_int32_%02d_%04d_%04d_%03d_%03d', fir.m, pbi, sbi, rpi, rsi);
27 sfn = sprintf('pdm_decim_int32_%02d_%04d_%04d_%03d_%03d', fir.m, pbi, sbi, rpi, rsi);
[all …]
Ddmic_init.m129 fir.length = length(coef32);
130 fir.coef = coef32;
131 fir.shift = shift;
134 fir.cp = cp;
135 fir.cs = cs;
136 fir.rp = spec.rp;
137 fir.rs = rs;
138 fir.m = mfir;
139 dmic_fir_export(fir, 'include');
/sof-2.7.6/src/include/sof/math/
Dfir_hifi2ep.h36 void fir_reset(struct fir_state_32x16 *fir);
40 int fir_init_coef(struct fir_state_32x16 *fir,
43 void fir_init_delay(struct fir_state_32x16 *fir, int32_t **data);
46 static inline void fir_hifiep_setup_circular(struct fir_state_32x16 *fir) in fir_hifiep_setup_circular() argument
48 AE_SETCBEGIN0(fir->delay); in fir_hifiep_setup_circular()
49 AE_SETCEND0(fir->delay_end); in fir_hifiep_setup_circular()
52 void fir_get_lrshifts(struct fir_state_32x16 *fir, int *lshift,
55 void fir_32x16_hifiep(struct fir_state_32x16 *fir, int32_t x, int32_t *y, int lshift, int rshift);
57 void fir_32x16_2x_hifiep(struct fir_state_32x16 *fir, int32_t x0, int32_t x1,
Dfir_hifi3.h34 void fir_reset(struct fir_state_32x16 *fir);
38 int fir_init_coef(struct fir_state_32x16 *fir,
41 void fir_init_delay(struct fir_state_32x16 *fir, int32_t **data);
44 static inline void fir_core_setup_circular(struct fir_state_32x16 *fir) in fir_core_setup_circular() argument
46 AE_SETCBEGIN0(fir->delay); in fir_core_setup_circular()
47 AE_SETCEND0(fir->delay_end); in fir_core_setup_circular()
57 void fir_get_lrshifts(struct fir_state_32x16 *fir, int *lshift,
60 void fir_32x16_hifi3(struct fir_state_32x16 *fir, ae_int32 x, ae_int32 *y,
63 void fir_32x16_2x_hifi3(struct fir_state_32x16 *fir, ae_int32 x0, ae_int32 x1,
Dfir_generic.h34 void fir_reset(struct fir_state_32x16 *fir);
38 int fir_init_coef(struct fir_state_32x16 *fir,
41 void fir_init_delay(struct fir_state_32x16 *fir, int32_t **data);
43 int32_t fir_32x16(struct fir_state_32x16 *fir, int32_t x);
/sof-2.7.6/src/audio/src/
Dsrc_generic.c237 struct src_state *fir = s->state; in src_polyphase_stage_cir() local
239 int32_t *fir_delay = fir->fir_delay; in src_polyphase_stage_cir()
240 int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; in src_polyphase_stage_cir()
241 int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; in src_polyphase_stage_cir()
243 const size_t out_size = fir->out_delay_size * sizeof(int32_t); in src_polyphase_stage_cir()
248 const int fir_length = fir->fir_delay_size; in src_polyphase_stage_cir()
252 const size_t fir_size = fir->fir_delay_size * sizeof(int32_t); in src_polyphase_stage_cir()
271 n_wrap_fir = fir->fir_wp - fir->fir_delay + 1; in src_polyphase_stage_cir()
277 *fir->fir_wp = *x_rptr << s->shift; in src_polyphase_stage_cir()
278 fir->fir_wp--; in src_polyphase_stage_cir()
[all …]
Dsrc_hifi2ep.c314 struct src_state *fir = s->state; in src_polyphase_stage_cir() local
316 int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; in src_polyphase_stage_cir()
317 int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; in src_polyphase_stage_cir()
319 const size_t out_size = fir->out_delay_size * sizeof(int32_t); in src_polyphase_stage_cir()
346 AE_SETCBEGIN0(fir->fir_delay); in src_polyphase_stage_cir()
362 AE_SQ32F_C(q, (ae_q32s *)fir->fir_wp, n_sz); in src_polyphase_stage_cir()
371 rp = (ae_q32s *)fir->fir_wp; in src_polyphase_stage_cir()
381 wp = (ae_q32s *)fir->out_rp; in src_polyphase_stage_cir()
398 AE_SETCBEGIN0(fir->out_delay); in src_polyphase_stage_cir()
409 AE_LQ32F_C(q, (ae_q32s *)fir->out_rp, sz); in src_polyphase_stage_cir()
[all …]
Dsrc_hifi3.c318 struct src_state *fir = s->state; in src_polyphase_stage_cir() local
320 int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; in src_polyphase_stage_cir()
321 int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; in src_polyphase_stage_cir()
323 const size_t out_size = fir->out_delay_size * sizeof(int32_t); in src_polyphase_stage_cir()
350 AE_SETCBEGIN0(fir->fir_delay); in src_polyphase_stage_cir()
366 AE_S32_L_XC(q, (ae_int32 *)fir->fir_wp, n_sz); in src_polyphase_stage_cir()
375 rp = (ae_f32 *)fir->fir_wp; in src_polyphase_stage_cir()
385 wp = (ae_f32 *)fir->out_rp; in src_polyphase_stage_cir()
402 AE_SETCBEGIN0(fir->out_delay); in src_polyphase_stage_cir()
413 AE_L32_XC(q, (ae_int32 *)fir->out_rp, sz); in src_polyphase_stage_cir()
[all …]
/sof-2.7.6/src/include/sof/audio/eq_fir/
Deq_fir.h27 void eq_fir_s16(struct fir_state_32x16 *fir, const struct audio_stream *source,
30 void eq_fir_2x_s16(struct fir_state_32x16 *fir, const struct audio_stream *source,
35 void eq_fir_s24(struct fir_state_32x16 *fir, const struct audio_stream *source,
38 void eq_fir_2x_s24(struct fir_state_32x16 *fir, const struct audio_stream *source,
43 void eq_fir_s32(struct fir_state_32x16 *fir, const struct audio_stream *source,
46 void eq_fir_2x_s32(struct fir_state_32x16 *fir, const struct audio_stream *source,
/sof-2.7.6/src/audio/eq_fir/
Deq_fir_generic.c20 void eq_fir_s16(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s16() argument
32 filter = &fir[ch]; in eq_fir_s16()
46 void eq_fir_s24(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s24() argument
58 filter = &fir[ch]; in eq_fir_s24()
72 void eq_fir_s32(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s32() argument
83 filter = &fir[ch]; in eq_fir_s32()
Deq_fir_hifi2ep.c25 void eq_fir_2x_s32(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s32() argument
45 f = &fir[ch]; in eq_fir_2x_s32()
65 void eq_fir_s32(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s32() argument
82 f = &fir[ch]; in eq_fir_s32()
100 void eq_fir_2x_s24(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s24() argument
122 f = &fir[ch]; in eq_fir_2x_s24()
144 void eq_fir_s24(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s24() argument
162 f = &fir[ch]; in eq_fir_s24()
181 void eq_fir_2x_s16(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s16() argument
203 f = &fir[ch]; in eq_fir_2x_s16()
[all …]
Deq_fir.c47 struct fir_state_32x16 fir[PLATFORM_MAX_CHANNELS]; /**< filters state */ member
52 void (*eq_fir_func)(struct fir_state_32x16 fir[],
143 static void eq_fir_passthrough(struct fir_state_32x16 fir[], in eq_fir_passthrough() argument
153 struct fir_state_32x16 *fir = cd->fir; in eq_fir_free_delaylines() local
163 fir[i].delay = NULL; in eq_fir_free_delaylines()
167 struct fir_state_32x16 *fir, int nch) in eq_fir_init_coef() argument
227 fir_reset(&fir[i]); in eq_fir_init_coef()
249 if (fir[i].taps * nch > FIR_MAX_LENGTH_BUILD_SPECIFIC) { in eq_fir_init_coef()
251 fir[i].taps); in eq_fir_init_coef()
256 fir_init_coef(&fir[i], eq); in eq_fir_init_coef()
[all …]
Deq_fir_hifi3.c24 void eq_fir_2x_s32(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s32() argument
46 f = &fir[ch]; in eq_fir_2x_s32()
83 void eq_fir_s32(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s32() argument
104 f = &fir[ch]; in eq_fir_s32()
140 void eq_fir_2x_s24(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s24() argument
162 f = &fir[ch]; in eq_fir_2x_s24()
204 void eq_fir_s24(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_s24() argument
226 f = &fir[ch]; in eq_fir_s24()
266 void eq_fir_2x_s16(struct fir_state_32x16 fir[], const struct audio_stream *source, in eq_fir_2x_s16() argument
290 f = &fir[ch]; in eq_fir_2x_s16()
[all …]
/sof-2.7.6/tools/test/audio/
Deqfir_run.sh20 COMP=eq-fir
/sof-2.7.6/tools/topology/topology1/development/
DCMakeLists.txt19 …ss_40hz_20db_16khz.m4\;-DHSEARPROC=eq-iir-eq-fir-volume\;-DHSMICPROC=eq-fir-volume\;-DSPKPROC=eq-i…
20 …hz_20db_16khz.m4\;-DHSEARPROC=asrc-volume\;-DHSMICPROC=asrc-volume\;-DSPKPROC=eq-iir-eq-fir-volume"
37 "sof-cml-rt1011-rt5682\;sof-cml-eq-rt1011-rt5682\;-DPLATFORM=cml\;-DPPROC=eq-iir-eq-fir-volume"
38 …82\;sof-cml-eq-fir-loud-rt5682\;-DPLATFORM=cml\;-DHSEARPROC=eq-iir-volume\;-DPIPELINE_FILTER1=eq_i…
39 …"sof-cml-rt5682\;sof-cml-eq-fir-rt5682\;-DPLATFORM=cml\;-DHSMICPROC=eq-fir-volume\;-DDMICPROC=eq-i…
/sof-2.7.6/tools/topology/topology1/dsp_enhancement/
DCMakeLists.txt5 …"sof-hda-generic\;sof-hda-generic-eq\;-DCHANNELS=0\;-DHSPROC=eq-iir-eq-fir-volume\;-DHSPROC_FILTER…
6 …"sof-hda-generic\;sof-hda-generic-eq-2ch\;-DCHANNELS=2\;-DHSPROC=eq-iir-eq-fir-volume\;-DDMICPROC_…
7 …"sof-hda-generic\;sof-hda-generic-eq-4ch\;-DCHANNELS=4\;-DHSPROC=eq-iir-eq-fir-volume\;-DDMICPROC_…
/sof-2.7.6/src/audio/tdfb/
Dtdfb_generic.c54 filter = &cd->fir[i]; in tdfb_fir_s16()
117 filter = &cd->fir[i]; in tdfb_fir_s24()
180 filter = &cd->fir[i]; in tdfb_fir_s32()
Dtdfb_hifiep.c58 f = &cd->fir[i]; in tdfb_fir_s16()
123 f = &cd->fir[i]; in tdfb_fir_s24()
188 f = &cd->fir[i]; in tdfb_fir_s32()
Dtdfb.c152 struct fir_state_32x16 *fir = cd->fir; in tdfb_free_delaylines() local
162 fir[i].delay = NULL; in tdfb_free_delaylines()
325 fir_init_coef(&cd->fir[i], coef_data); in tdfb_init_coef()
355 if (cd->fir[i].length > 0) in tdfb_init_delay()
356 fir_init_delay(&cd->fir[i], &fir_delay); in tdfb_init_delay()
460 fir_reset(&cd->fir[i]); in tdfb_new()
795 fir_reset(&cd->fir[i]); in tdfb_reset()
Dtdfb_hifi3.c58 f = &cd->fir[i]; in tdfb_fir_s16()
129 f = &cd->fir[i]; in tdfb_fir_s24()
200 f = &cd->fir[i]; in tdfb_fir_s32()
/sof-2.7.6/src/include/sof/audio/tdfb/
Dtdfb_comp.h56 struct fir_state_32x16 fir[SOF_TDFB_FIR_MAX_COUNT]; /**< FIR state */ member
/sof-2.7.6/tools/topology/topology1/m4/
Deq_fir.m44 DECLARE_SOF_RT_UUID("eq-fir", eq_fir_uuid, 0x43a90ce7, 0xf3a5, 0x41df,

12