Home
last modified time | relevance | path

Searched refs:bs (Results 1 – 20 of 20) sorted by relevance

/sof-2.7.6/tools/tune/eq/
Deq_fir_blob_pack.m1 function blob8 = eq_fir_blob_pack(bs, endian)
5 % blob8 = eq_fir_blob_pack(bs, endian)
6 % bs - blob struct
33 if mod(bs.channels_in_config, 2) > 0
38 if bs.channels_in_config ~= length( bs.assign_response)
39 bs
44 len = length(bs.all_coefficients);
45 len_no_header = len - 10 * bs.number_of_responses_defined;
47 bs
59 nh16 = 12+bs.channels_in_config;
[all …]
Deq_iir_blob_pack.m1 function blob8 = eq_iir_blob_pack(bs, endian)
5 % blob8 = eq_iir_blob_pack(bs, endian)
6 % bs - blob struct
21 if bs.channels_in_config ~= length( bs.assign_response)
22 bs
37 nbytes_head = (7+bs.channels_in_config)*4;
38 nbytes_coef = length(bs.all_coefficients)*4;
54 blob8(j:j+3) = w2b(bs.channels_in_config, sh); j=j+4;
55 blob8(j:j+3) = w2b(bs.number_of_responses_defined, sh); j=j+4;
61 for i=1:bs.channels_in_config
[all …]
Deq_fir_blob_merge.m1 function bs = eq_fir_blob_merge(channels_in_config, ...
7 % bs = eq_fir_blob_merge(channels_in_config, number_of_responses_defined, ...
45 bs.channels_in_config = channels_in_config;
46 bs.number_of_responses_defined = number_of_responses_defined;
47 bs.assign_response = assign_response;
48 bs.all_coefficients = all_coefficients;
Deq_iir_blob_merge.m1 function bs = eq_iir_blob_merge(channels_in_config, ...
9 % bs = eq_iir_blob_merge(channels_in_config, number_of_responses_defined, ...
47 bs.channels_in_config = channels_in_config;
48 bs.number_of_responses_defined = number_of_responses_defined;
49 bs.assign_response = assign_response;
50 bs.all_coefficients = all_coefficients;
Deq_define_parametric_eq.m92 bs = [1 glin*w]; variable
94 [b, a] = my_bilinear(bs, as, fs);
101 bs = [1 w*sqrt(2*glin) glin*w^2]; variable
103 [b, a] = my_bilinear(bs, as, fs);
110 bs = [glin w]; variable
112 [b, a] = my_bilinear(bs, as, fs);
119 bs = [glin w*sqrt(2*glin) w^2]; variable
121 [b, a] = my_bilinear(bs, as, fs);
/sof-2.7.6/src/samples/audio/
Dsmart_amp_test.c46 size_t bs; in smart_amp_new() local
65 bs = ipc_sa->size; in smart_amp_new()
67 if ((bs > 0) && (bs < sizeof(struct sof_smart_amp_config))) { in smart_amp_new()
72 memcpy_s(&sad->config, sizeof(struct sof_smart_amp_config), cfg, bs); in smart_amp_new()
91 size_t bs; in smart_amp_set_config() local
96 bs = cfg->size; in smart_amp_set_config()
99 bs, sizeof(struct sof_smart_amp_config)); in smart_amp_set_config()
101 if (bs != sizeof(struct sof_smart_amp_config)) { in smart_amp_set_config()
103 bs, sizeof(struct sof_smart_amp_config)); in smart_amp_set_config()
117 size_t bs; in smart_amp_get_config() local
[all …]
Ddetect_test.c262 size_t bs; in test_keyword_new() local
289 bs = ipc_keyword->size; in test_keyword_new()
291 if (bs > 0) { in test_keyword_new()
292 if (bs < sizeof(struct sof_detect_test_config)) { in test_keyword_new()
425 size_t bs; in test_keyword_set_config() local
429 bs = cfg->size; in test_keyword_set_config()
431 comp_info(dev, "test_keyword_set_config(), blob size = %u", bs); in test_keyword_set_config()
433 if (bs != sizeof(struct sof_detect_test_config)) { in test_keyword_set_config()
507 size_t bs; in test_keyword_get_config() local
513 bs = cd->config.size; in test_keyword_get_config()
[all …]
/sof-2.7.6/src/audio/crossover/
Dcrossover.c318 size_t bs = ipc_crossover->size; in crossover_new() local
324 if (bs > SOF_CROSSOVER_MAX_SIZE) { in crossover_new()
326 bs, SOF_CROSSOVER_MAX_SIZE); in crossover_new()
349 if (bs) { in crossover_new()
351 SOF_MEM_CAPS_RAM, bs); in crossover_new()
358 ret = memcpy_s(cd->config, bs, ipc_crossover->data, bs); in crossover_new()
486 uint32_t bs; in crossover_cmd_set_data() local
495 bs = request->size; in crossover_cmd_set_data()
505 SOF_MEM_CAPS_RAM, bs); in crossover_cmd_set_data()
514 ret = memcpy_s(cd->config_new, bs, request, bs); in crossover_cmd_set_data()
[all …]
/sof-2.7.6/src/audio/smart_amp/
Dsmart_amp.c221 size_t bs; in smart_amp_new() local
239 bs = ipc_sa->size; in smart_amp_new()
241 if (bs > 0 && bs < sizeof(struct sof_smart_amp_config)) { in smart_amp_new()
250 memcpy_s(&sad->config, sizeof(struct sof_smart_amp_config), cfg, bs); in smart_amp_new()
293 size_t bs; in smart_amp_set_config() local
298 bs = cfg->size; in smart_amp_set_config()
301 bs, sizeof(struct sof_smart_amp_config)); in smart_amp_set_config()
303 if (bs != sizeof(struct sof_smart_amp_config)) { in smart_amp_set_config()
305 bs, sizeof(struct sof_smart_amp_config)); in smart_amp_set_config()
319 size_t bs; in smart_amp_get_config() local
[all …]
Dsmart_amp_maxim_dsm.c165 size_t bs; in maxim_dsm_get_param() local
178 bs = cdata->num_elems; in maxim_dsm_get_param()
183 if (bs > size) { in maxim_dsm_get_param()
184 comp_err(dev, "[DSM] maxim_dsm_get_param(): invalid size %d", bs); in maxim_dsm_get_param()
191 bs); in maxim_dsm_get_param()
197 caldata->data_pos += bs; in maxim_dsm_get_param()
/sof-2.7.6/src/audio/dcblock/
Ddcblock.c74 size_t bs = ipc_dcblock->size; in dcblock_new() local
97 if (bs == sizeof(cd->R_coeffs)) { in dcblock_new()
98 ret = memcpy_s(cd->R_coeffs, bs, ipc_dcblock->data, bs); in dcblock_new()
101 if (bs > 0) in dcblock_new()
103 bs, sizeof(cd->R_coeffs)); in dcblock_new()
/sof-2.7.6/src/audio/drc/
Ddrc.c148 size_t bs = ipc_drc->size; in drc_new() local
156 if (bs > SOF_DRC_MAX_SIZE) { in drc_new()
158 bs, SOF_DRC_MAX_SIZE); in drc_new()
183 ret = comp_init_data_blob(cd->model_handler, bs, ipc_drc->data); in drc_new()
/sof-2.7.6/src/audio/eq_fir/
Deq_fir.c322 size_t bs = ipc_fir->size; in eq_fir_new() local
331 if (bs > SOF_EQ_FIR_MAX_SIZE) { in eq_fir_new()
333 bs); in eq_fir_new()
362 ret = comp_init_data_blob(cd->model_handler, bs, ipc_fir->data); in eq_fir_new()
/sof-2.7.6/src/audio/rtnr/
Drtnr.c195 size_t bs = ipc_rtnr->size; in rtnr_new() local
203 if (bs > SOF_RTNR_MAX_SIZE) { in rtnr_new()
205 bs, SOF_RTNR_MAX_SIZE); in rtnr_new()
229 ret = comp_init_data_blob(cd->model_handler, bs, ipc_rtnr->data); in rtnr_new()
/sof-2.7.6/src/audio/multiband_drc/
Dmultiband_drc.c235 size_t bs = ipc_multiband_drc->size; in multiband_drc_new() local
243 if (bs > SOF_MULTIBAND_DRC_MAX_BLOB_SIZE) { in multiband_drc_new()
246 bs, SOF_MULTIBAND_DRC_MAX_BLOB_SIZE); in multiband_drc_new()
274 ret = comp_init_data_blob(cd->model_handler, bs, ipc_multiband_drc->data); in multiband_drc_new()
/sof-2.7.6/src/audio/eq_iir/
Deq_iir.c494 size_t bs = ipc_iir->size; in eq_iir_new() local
503 if (bs > SOF_EQ_IIR_MAX_SIZE) { in eq_iir_new()
505 bs); in eq_iir_new()
534 ret = comp_init_data_blob(cd->model_handler, bs, ipc_iir->data); in eq_iir_new()
/sof-2.7.6/src/audio/tdfb/
Dtdfb.c408 size_t bs = ipc_tdfb->size; in tdfb_new() local
415 if (bs > SOF_TDFB_MAX_SIZE) { in tdfb_new()
417 bs, SOF_TDFB_MAX_SIZE); in tdfb_new()
453 ret = comp_init_data_blob(cd->model_handler, bs, ipc_tdfb->data); in tdfb_new()
/sof-2.7.6/src/audio/selector/
Dselector.c57 size_t bs = ipc_process->size; in selector_new() local
77 ret = memcpy_s(&cd->config, sizeof(cd->config), ipc_process->data, bs); in selector_new()
/sof-2.7.6/src/audio/igo_nr/
Digo_nr.c280 size_t bs = ipc_igo_nr->size; in igo_nr_new() local
286 if (bs > SOF_IGO_NR_MAX_SIZE) { in igo_nr_new()
288 bs, SOF_IGO_NR_MAX_SIZE); in igo_nr_new()
324 ret = comp_init_data_blob(cd->model_handler, bs, ipc_igo_nr->data); in igo_nr_new()
/sof-2.7.6/src/audio/mux/
Dmux.c164 size_t bs = ipc_process->size; in mux_new() local
187 ipc_process->data, bs); in mux_new()