Home
last modified time | relevance | path

Searched refs:cfg (Results 1 – 25 of 34) sorted by relevance

12

/sof-2.7.6/src/drivers/intel/cavs/
Dtimestamp.c19 int timestamp_hda_config(struct dai *dai, struct timestamp_cfg *cfg) in timestamp_hda_config() argument
23 if (cfg->type != SOF_DAI_INTEL_HDA) { in timestamp_hda_config()
28 cfg->walclk_rate = 0; in timestamp_hda_config()
31 cfg->walclk_rate = ssp_freq[i].freq; in timestamp_hda_config()
37 int timestamp_hda_start(struct dai *dai, struct timestamp_cfg *cfg) in timestamp_hda_start() argument
48 cdmas = TS_LOCAL_TSCTRL_CDMAS(cfg->dma_chan_index | in timestamp_hda_start()
49 (cfg->direction == SOF_IPC_STREAM_PLAYBACK ? BIT(4) : 0)); in timestamp_hda_start()
58 int timestamp_hda_stop(struct dai *dai, struct timestamp_cfg *cfg) in timestamp_hda_stop() argument
66 int timestamp_hda_get(struct dai *dai, struct timestamp_cfg *cfg, in timestamp_hda_get() argument
87 tsd->walclk_rate = cfg->walclk_rate; in timestamp_hda_get()
[all …]
Dsue-iomux.c14 int iomux_configure(struct iomux *iomux, const struct iomux_pin_config *cfg) in iomux_configure() argument
16 if (iomux->pin_state[cfg->bit] != IOMUX_PIN_UNCONFIGURED) in iomux_configure()
19 io_reg_update_bits(iomux->base, cfg->mask << cfg->bit, in iomux_configure()
20 cfg->fn << cfg->bit); in iomux_configure()
22 iomux->pin_state[cfg->bit] = cfg->fn + 1; in iomux_configure()
/sof-2.7.6/src/include/sof/drivers/
Dtimestamp.h16 int timestamp_hda_config(struct dai *dai, struct timestamp_cfg *cfg);
17 int timestamp_hda_start(struct dai *dai, struct timestamp_cfg *cfg);
18 int timestamp_hda_stop(struct dai *dai, struct timestamp_cfg *cfg);
19 int timestamp_hda_get(struct dai *dai, struct timestamp_cfg *cfg,
23 int timestamp_dmic_config(struct dai *dai, struct timestamp_cfg *cfg);
24 int timestamp_dmic_start(struct dai *dai, struct timestamp_cfg *cfg);
25 int timestamp_dmic_stop(struct dai *dai, struct timestamp_cfg *cfg);
26 int timestamp_dmic_get(struct dai *dai, struct timestamp_cfg *cfg,
30 int timestamp_ssp_config(struct dai *dai, struct timestamp_cfg *cfg);
31 int timestamp_ssp_start(struct dai *dai, struct timestamp_cfg *cfg);
[all …]
Diomux.h30 int iomux_configure(struct iomux *iomux, const struct iomux_pin_config *cfg);
/sof-2.7.6/tools/test/audio/test_utils/
Dremote_test_run.m30 function remote_copy_playback(fn, cfg)
31 if cfg.ssh
32 cmd = sprintf('scp %s %s:%s/', fn, cfg.user, cfg.dir);
36 cmd = sprintf('cp %s %s/', fn, cfg.dir);
41 function y = remote_copy_capture(fn, cfg)
42 if cfg.ssh
43 cmd = sprintf('scp %s:%s/%s %s', cfg.user, cfg.dir, fn, fn);
44 del = sprintf('ssh %s rm %s/%s', cfg.user, cfg.dir, fn);
47 cmd = sprintf('cp %s/%s %s', cfg.dir, fn, fn);
48 del = sprintf('rm %s/%s', cfg.dir, fn);
[all …]
/sof-2.7.6/tools/tune/dmic/
Ddmic_init.m52 cfg = get_cfg(prm, hw); variable
56 cfg = select_mode(common_mcic_list, a_mfir_list, b_mfir_list, common_clkdiv_list, cfg); variable
57 cfg = get_cic_config(prm, cfg, hw); variable
58 cfg = get_fir_config(prm, cfg, hw, spec); variable
65 function cfg = get_fir_config(prm, cfg, hw, spec)
68 [coef, shift] = get_fir(cfg.mfir_a, prm, cfg, hw, spec);
70 [cfg.fir_coef_a, cfg.fir_shift_a, cfg.fir_length_a] = ...
71 scale_fir_coef(coef, shift, spec.scale, cfg.remain_gain_to_fir, hw.bits_fir_coef);
72 cfg.fir_gain_a = 1;
74 cfg.fir_gain_a = 0;
[all …]
/sof-2.7.6/src/drivers/intel/dmic/
Ddmic_computed.c227 struct dmic_configuration *cfg, int mfir) in get_fir() argument
238 cic_fs = DMIC_HW_IOCLK / cfg->clkdiv / cfg->mcic; in get_fir()
332 struct dmic_configuration *cfg, in select_mode() argument
387 cfg->clkdiv = modes->clkdiv[n]; in select_mode()
388 cfg->mfir_a = modes->mfir_a[n]; in select_mode()
389 cfg->mfir_b = modes->mfir_b[n]; in select_mode()
390 cfg->mcic = modes->mcic[n]; in select_mode()
391 cfg->fir_a = NULL; in select_mode()
392 cfg->fir_b = NULL; in select_mode()
397 if (cfg->mfir_a > 0) { in select_mode()
[all …]
/sof-2.7.6/tools/tune/src/
Dsrc_small_int32.m21 cfg.ctype = 'int32';
22 cfg.profile = 'small';
23 cfg.quality = 1.0;
24 cfg.speed = 0;
26 src_generate(fs1, fs2, fs_matrix, cfg);
Dsrc_generate.m1 function src_generate(fs_in, fs_out, fs_inout, cfg);
5 % src_generate(fs_in, fs_out <, fs_inout, <cfg>>)
11 % cfg - configuration struct with fields
20 % If cfg is omitted the script will assume 'int32', 'std', 1.0, 0.
33 cfg.ctype = 'int32';
34 cfg.profile = 'std';
35 cfg.quality = 1.0;
36 cfg.speed = 0;
49 switch cfg.ctype
104 if cfg.speed && max(l1 * l2, m1 * m2) < 30
[all …]
Dsrc_tiny_int16.m41 cfg.ctype = 'int16';
42 cfg.profile = 'tiny';
43 cfg.quality = 0.40;
44 cfg.speed = 1;
46 src_generate(fs1, fs2, fsm, cfg);
Dsrc_std_int32.m50 cfg.ctype = 'int32';
51 cfg.profile = 'std';
52 cfg.quality = 1.0;
53 cfg.speed = 0;
55 src_generate(fs1, fs2, fs_matrix, cfg);
/sof-2.7.6/src/audio/src/
Dsrc_generic.c238 struct src_stage *cfg = s->stage; in src_polyphase_stage_cir() local
245 const int nch_x_odm = cfg->odm * nch; in src_polyphase_stage_cir()
246 const int blk_in_words = nch * cfg->blk_in; in src_polyphase_stage_cir()
247 const int blk_out_words = nch * cfg->num_of_subfilters; in src_polyphase_stage_cir()
249 const int rewind = nch * (cfg->blk_in in src_polyphase_stage_cir()
250 + (cfg->num_of_subfilters - 1) * cfg->idm) - nch; in src_polyphase_stage_cir()
251 const int nch_x_idm = nch * cfg->idm; in src_polyphase_stage_cir()
253 const int taps_x_nch = cfg->subfilter_length * nch; in src_polyphase_stage_cir()
260 const size_t subfilter_size = cfg->subfilter_length * sizeof(int16_t); in src_polyphase_stage_cir()
262 const size_t subfilter_size = cfg->subfilter_length * sizeof(int32_t); in src_polyphase_stage_cir()
[all …]
Dsrc_hifi2ep.c315 struct src_stage *cfg = s->stage; in src_polyphase_stage_cir() local
321 const int nch_x_odm = cfg->odm * nch; in src_polyphase_stage_cir()
322 const int blk_in_words = nch * cfg->blk_in; in src_polyphase_stage_cir()
323 const int blk_out_words = nch * cfg->num_of_subfilters; in src_polyphase_stage_cir()
326 const int rewind_sz = sz * (nch * (cfg->blk_in in src_polyphase_stage_cir()
327 + (cfg->num_of_subfilters - 1) * cfg->idm) - nch); in src_polyphase_stage_cir()
328 const int nch_x_idm_sz = -nch * cfg->idm * sizeof(int32_t); in src_polyphase_stage_cir()
329 const int taps_div_4 = cfg->subfilter_length >> 2; in src_polyphase_stage_cir()
336 const size_t subfilter_size = cfg->subfilter_length * sizeof(int16_t); in src_polyphase_stage_cir()
338 const size_t subfilter_size = cfg->subfilter_length * sizeof(int32_t); in src_polyphase_stage_cir()
[all …]
Dsrc_hifi3.c319 struct src_stage *cfg = s->stage; in src_polyphase_stage_cir() local
325 const int nch_x_odm = cfg->odm * nch; in src_polyphase_stage_cir()
326 const int blk_in_words = nch * cfg->blk_in; in src_polyphase_stage_cir()
327 const int blk_out_words = nch * cfg->num_of_subfilters; in src_polyphase_stage_cir()
330 const int rewind_sz = sz * (nch * (cfg->blk_in in src_polyphase_stage_cir()
331 + (cfg->num_of_subfilters - 1) * cfg->idm) - nch); in src_polyphase_stage_cir()
332 const int nch_x_idm_sz = -nch * cfg->idm * sizeof(int32_t); in src_polyphase_stage_cir()
333 const int taps_div_4 = cfg->subfilter_length >> 2; in src_polyphase_stage_cir()
340 const size_t subfilter_size = cfg->subfilter_length * sizeof(int16_t); in src_polyphase_stage_cir()
342 const size_t subfilter_size = cfg->subfilter_length * sizeof(int32_t); in src_polyphase_stage_cir()
[all …]
/sof-2.7.6/tools/test/audio/
Dtdfb_test.m16 cfg.delete_files = 1;
17 cfg.do_plots = 1;
18 cfg.tunepath = '../../tune/tdfb/data';
31 test_beampattern(cfg, config_fn, simcap_fn);
36 [dfin_dbfs, dfout_dbfs, dfd_db] = test_noise_suppression(cfg, config_fn, simcap_fn, desc);
41 [rnin_dbfs, rnout_dbfs, drn_db] = test_noise_suppression(cfg, config_fn, simcap_fn, desc);
99 function test_beampattern(cfg, config_fn, simcap_fn);
101 fn = fullfile(cfg.tunepath, config_fn);
112 test.fn_in = fullfile(cfg.tunepath, simcap_fn);
121 delete_check(cfg.delete_files, test.fn_out);
[all …]
Dsof_test_perf_top.m31 cfg = char(configs(i)); variable
32 [n_fail, n_pass] = sof_test_perf(cfg);
36 fprintf('Completed: %s\n', cfg);
/sof-2.7.6/src/audio/mux/
Dmux.c55 static bool mux_mix_check(struct sof_mux_config *cfg) in mux_mix_check() argument
63 for (i = 0 ; i < cfg->num_streams; i++) { in mux_mix_check()
67 if (cfg->streams[i].mask[k] & (1 << j)) { in mux_mix_check()
81 for (k = 0 ; k < cfg->num_streams; k++) { in mux_mix_check()
82 if (cfg->streams[k].mask[i] & (1 << j)) { in mux_mix_check()
96 struct sof_mux_config *cfg) in mux_set_values() argument
104 if (cfg->num_streams > MUX_MAX_STREAMS) { in mux_set_values()
106 META_QUOTE(MUX_MAX_STREAMS), cfg->num_streams); in mux_set_values()
111 for (i = 0; i < cfg->num_streams; i++) { in mux_set_values()
112 for (j = i + 1; j < cfg->num_streams; j++) { in mux_set_values()
[all …]
/sof-2.7.6/tools/tune/eq/
Dmls_freq_resp.m204 function copy_playback(fn, cfg)
205 if cfg.ssh
206 cmd = sprintf('scp %s %s:%s/', fn, cfg.user, cfg.dir);
210 %cmd = sprintf('cp %s %s/', fn, cfg.dir);
215 function y = get_recording(fn, cfg)
216 if cfg.ssh
217 cmd = sprintf('scp %s:%s/%s %s', cfg.user, cfg.dir, fn, fn);
220 cmd = sprintf('cp %s/%s %s', cfg.dir, fn, fn);
228 function remote_play(fn, cfg)
229 if cfg.ssh
[all …]
/sof-2.7.6/src/audio/tdfb/
Dtdfb_generic.c22 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s16() local
50 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s16()
85 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s24() local
113 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s24()
148 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s32() local
176 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s32()
Dtdfb_hifiep.c23 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s16() local
53 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s16()
88 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s24() local
118 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s24()
153 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s32() local
183 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s32()
Dtdfb_hifi3.c23 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s16() local
52 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s16()
95 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s24() local
123 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s24()
166 struct sof_tdfb_config *cfg = cd->config; in tdfb_fir_s32() local
194 for (i = 0; i < cfg->num_filters; i++) { in tdfb_fir_s32()
/sof-2.7.6/src/audio/codec_adapter/codec/
Dwaves.c513 struct codec_config *cfg; in waves_effect_config() local
522 cfg = (type == CODEC_CFG_SETUP) ? &codec->s_cfg : &codec->r_cfg; in waves_effect_config()
525 cfg->data, cfg->size, cfg->avail); in waves_effect_config()
527 if (!cfg->avail || !cfg->size) { in waves_effect_config()
529 type, cfg->avail, cfg->size); in waves_effect_config()
533 if (cfg->size > MAX_CONFIG_SIZE_BYTES) { in waves_effect_config()
535 cfg->size); in waves_effect_config()
542 for (index = 0; index < cfg->size && (!ret); param_number++) { in waves_effect_config()
545 param = (struct codec_param *)((char *)cfg->data + index); in waves_effect_config()
Dgeneric.c19 static int validate_config(struct codec_config *cfg);
22 codec_load_config(struct comp_dev *dev, void *cfg, size_t size, in codec_load_config() argument
32 if (!dev || !cfg || !size) { in codec_load_config()
34 (uint32_t)dev, (uint32_t)cfg, size); in codec_load_config()
57 ret = memcpy_s(dst->data, size, cfg, size); in codec_load_config()
192 static int validate_config(struct codec_config *cfg) in validate_config() argument
/sof-2.7.6/src/include/sof/audio/codec_adapter/
Dcodec_adapter.h17 static int load_setup_config(struct comp_dev *dev, void *cfg, uint32_t size);
/sof-2.7.6/src/samples/audio/
Ddetect_test.c230 struct sof_detect_test_config *cfg) in test_keyword_apply_config() argument
236 ret = memcpy_s(&cd->config, sizeof(cd->config), cfg, in test_keyword_apply_config()
260 struct sof_detect_test_config *cfg; in test_keyword_new() local
288 cfg = (struct sof_detect_test_config *)ipc_keyword->data; in test_keyword_new()
297 if (test_keyword_apply_config(dev, cfg)) { in test_keyword_new()
424 struct sof_detect_test_config *cfg; in test_keyword_set_config() local
428 cfg = (struct sof_detect_test_config *)cdata->data->data; in test_keyword_set_config()
429 bs = cfg->size; in test_keyword_set_config()
438 return test_keyword_apply_config(dev, cfg); in test_keyword_set_config()

12