Home
last modified time | relevance | path

Searched +full:- +full:r (Results 1 – 25 of 320) sorted by relevance

12345678910>>...13

/sof-3.4.0/test/cmocka/src/math/numbers/
Dgcd.c1 // SPDX-License-Identifier: BSD-3-Clause
18 int r; in test_math_numbers_gcd_for_5083_and_391_equals_391() local
22 r = gcd(5083, 391); in test_math_numbers_gcd_for_5083_and_391_equals_391()
23 assert_int_equal(r, 391); in test_math_numbers_gcd_for_5083_and_391_equals_391()
28 int r; in test_math_numbers_gcd_for_12_and_9_equals_3() local
32 r = gcd(12, 9); in test_math_numbers_gcd_for_12_and_9_equals_3()
33 assert_int_equal(r, 3); in test_math_numbers_gcd_for_12_and_9_equals_3()
38 int r; in test_math_numbers_gcd_for_5_and_0_equals_5() local
42 r = gcd(5, 0); in test_math_numbers_gcd_for_5_and_0_equals_5()
43 assert_int_equal(r, 5); in test_math_numbers_gcd_for_5_and_0_equals_5()
[all …]
Dnorm_int32.c1 // SPDX-License-Identifier: BSD-3-Clause
19 int r = norm_int32(0); in test_math_numbers_norm_int32_for_0_equals_31() local
21 assert_int_equal(r, 31); in test_math_numbers_norm_int32_for_0_equals_31()
28 int r = norm_int32(35); in test_math_numbers_norm_int32_for_35_equals_10() local
30 assert_int_equal(r, 25); in test_math_numbers_norm_int32_for_35_equals_10()
37 int r = norm_int32(2147483647); in test_math_numbers_norm_int32_for_2147483647_equals_0() local
39 assert_int_equal(r, 0); in test_math_numbers_norm_int32_for_2147483647_equals_0()
Dfind_equal_int16.c1 // SPDX-License-Identifier: BSD-3-Clause
20 int16_t r[4]; in test_math_numbers_find_equal_int16_for_5_123_5_10_123_500_123_n_123_equals_1_4_and_6() local
24 int r_num = find_equal_int16(r, vec, 123, 7, 4); in test_math_numbers_find_equal_int16_for_5_123_5_10_123_500_123_n_123_equals_1_4_and_6()
27 assert_memory_equal(r, template, sizeof(int16_t) * 3); in test_math_numbers_find_equal_int16_for_5_123_5_10_123_500_123_n_123_equals_1_4_and_6()
35 int16_t r[4]; in test_math_numbers_find_equal_int16_for_1_2_3_4_5_n_0_equals_nothing() local
38 int r_num = find_equal_int16(r, vec, 0, 5, 4); in test_math_numbers_find_equal_int16_for_1_2_3_4_5_n_0_equals_nothing()
/sof-3.4.0/test/cmocka/src/lib/lib/
Drstrcmp.c1 // SPDX-License-Identifier: BSD-3-Clause
16 int r; in test_lib_lib_rstrcmp_for_a_and_a_equals_0() local
22 r = rstrcmp(str1, str2); in test_lib_lib_rstrcmp_for_a_and_a_equals_0()
23 assert_int_equal(r, 0); in test_lib_lib_rstrcmp_for_a_and_a_equals_0()
28 int r; in test_lib_lib_rstrcmp_for_a_and_b_is_negative() local
34 r = rstrcmp(str1, str2); in test_lib_lib_rstrcmp_for_a_and_b_is_negative()
35 assert_true(r < 0); in test_lib_lib_rstrcmp_for_a_and_b_is_negative()
40 int r; in test_lib_lib_rstrcmp_for_b_and_a_is_positive() local
46 r = rstrcmp(str1, str2); in test_lib_lib_rstrcmp_for_b_and_a_is_positive()
47 assert_true(r > 0); in test_lib_lib_rstrcmp_for_b_and_a_is_positive()
[all …]
Drstrlen.c1 // SPDX-License-Identifier: BSD-3-Clause
16 int r; in test_lib_lib_rstrlen_for_empty_str_equals_0() local
21 r = rstrlen(str); in test_lib_lib_rstrlen_for_empty_str_equals_0()
22 assert_int_equal(r, 0); in test_lib_lib_rstrlen_for_empty_str_equals_0()
27 int r; in test_lib_lib_rstrlen_for_null_str_equals_0() local
32 r = rstrlen(str); in test_lib_lib_rstrlen_for_null_str_equals_0()
33 assert_int_equal(r, 0); in test_lib_lib_rstrlen_for_null_str_equals_0()
38 int r; in test_lib_lib_rstrlen_for_a_equals_1() local
43 r = rstrlen(str); in test_lib_lib_rstrlen_for_a_equals_1()
44 assert_int_equal(r, 1); in test_lib_lib_rstrlen_for_a_equals_1()
[all …]
/sof-3.4.0/tools/test/audio/
Dsrc_test.m4 % src_test - test with SRC test bench objective audio quality parameters
8 % bits_in - input word length
9 % bits_out - output word length
10 % fs_in - vector of rates in, default 8 to 192 kHz
11 % fs_out - vector of rates out, default 8 to 192 kHz
12 % full_test - set to 0 for chirp only, 1 for all, default 1
13 % show_plots - set to 1 to see plots, default 0
15 % A default in-out matrix with 32 bits data is tested if the
19 % SPDX-License-Identifier: BSD-3-Clause
63 t.thdnf_db_max = -80;
[all …]
Dprocess_test.m1 % process_test - test objective audio quality parameters
5 % SPDX-License-Identifier: BSD-3-Clause
6 % Copyright(c) 2017-2022 Intel Corporation. All rights reserved.
67 r.bits_in_list = bits_in_list;
68 r.bits_out_list = bits_out_list;
69 r.g = NaN(n_bits_in, n_bits_out);
70 r.dr = NaN(n_bits_in, n_bits_out);
71 r.thdnf = NaN(n_bits_in, n_bits_out);
72 r.pf = -ones(n_bits_in, n_bits_out, n_meas);
73 r.n_fail = 0;
[all …]
/sof-3.4.0/tools/topology/topology2/platform/intel/
Dcommon_definitions.conf5 CHANNEL_CONFIG_STEREO 1 # L & R.
6 CHANNEL_CONFIG_2_POINT_1 2 # L, R & LFE; PCM only.
7 CHANNEL_CONFIG_3_POINT_0 3 # L, C & R; MP3 & AAC only.
8 CHANNEL_CONFIG_3_POINT_1 4 # L, C, R & LFE; PCM only.
9 CHANNEL_CONFIG_QUATRO 5 # L, R, Ls & Rs; PCM only.
10 CHANNEL_CONFIG_4_POINT_0 6 # L, C, R & Cs; MP3 & AAC only.
11 CHANNEL_CONFIG_5_POINT_0 7 # L, C, R, Ls & Rs.
12 CHANNEL_CONFIG_5_POINT_1 8 # L, C, R, Ls, Rs & LFE.
14 CHANNEL_CONFIG_I2S_DUAL_STEREO_0 10 # Stereo (L,R) in 4 slots, 1st stream: [ L, R, -, - ]
15 CHANNEL_CONFIG_I2S_DUAL_STEREO_1 11 # Stereo (L,R) in 4 slots, 2nd stream: [ -, -, L, R ]
[all …]
/sof-3.4.0/src/ipc/ipc4/
Dhandler.c1 // SPDX-License-Identifier: BSD-3-Clause
5 // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
37 #include <sof/trace/dma-trace.h>
79 tr_dbg(&ipc_tr, "ipc4 delete pipeline %x:", (uint32_t)pipe->primary.r.instance_id); in ipc4_delete_pipeline()
81 return ipc_pipeline_free(ipc, pipe->primary.r.instance_id); in ipc4_delete_pipeline()
88 struct pipeline_data *ppl_data = ctx->comp_data; in ipc4_comp_params()
92 if (current->state == COMP_STATE_ACTIVE) in ipc4_comp_params()
96 if (current->pipeline != ((struct pipeline_data *)ctx->comp_data)->p) in ipc4_comp_params()
99 err = comp_params(current, &ppl_data->params->params); in ipc4_comp_params()
121 return param_ctx.comp_func(host, NULL, &param_ctx, host->direction); in ipc4_pipeline_params()
[all …]
Dhelper.c1 // SPDX-License-Identifier: BSD-3-Clause
5 // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com>
31 #include <ipc4/base-config.h>
69 posn->rhdr.hdr.cmd = SOF_IPC4_NOTIF_HEADER(SOF_IPC4_NOTIFY_LOG_BUFFER_STATUS); in ipc_build_trace_posn()
70 posn->rhdr.hdr.size = 0; in ipc_build_trace_posn()
80 comp_id = IPC4_COMP_ID(module_init->primary.r.module_id, in comp_new_ipc4()
81 module_init->primary.r.instance_id); in comp_new_ipc4()
91 if (module_init->extension.r.core_id >= CONFIG_CORE_COUNT) { in comp_new_ipc4()
92 tr_err(&ipc_tr, "ipc: comp->core = %u", (uint32_t)module_init->extension.r.core_id); in comp_new_ipc4()
98 ipc_config.pipeline_id = module_init->extension.r.ppl_instance_id; in comp_new_ipc4()
[all …]
/sof-3.4.0/src/arch/xtensa/debug/gdb/
Dutilities.c1 // SPDX-License-Identifier: BSD-3-Clause
14 #include <xtensa/config/core-isa.h>
28 : "=r"(val) in arch_gdb_read_sr()
29 : "r"(sr) in arch_gdb_read_sr()
43 : "r"(sregs[sr]), "r"(sr) in arch_gdb_write_sr()
54 : "=r"(v) in arch_gdb_load_from_memory()
55 : "r"(addr & ~3) in arch_gdb_load_from_memory()
73 : "=&r"(tmp) in arch_gdb_memory_load_and_store()
74 : "r"(addr & ~3), "r"(0xffffffff ^ (0xff << in arch_gdb_memory_load_and_store()
76 "r"(ch << (addr & 3) * 8) in arch_gdb_memory_load_and_store()
/sof-3.4.0/tools/tune/dcblock/
Ddcblock_plot_stepfn.m1 function dcblock_plot_stepfn(R, fs);
3 % For a DC Blocking filter: H(z) = (1-1/z)/(1 - R/z)
4 % Therefore the coefficients are b = [1 -1], a = [1 -R]
5 b = [1 -1];
6 a = [1 -R];
8 t=((1:0.5*fs)-1)/fs;
13 tstr = sprintf("DC Blocking Filter Step Response, R = %i", R);
Ddcblock_plot_transferfn.m1 function dcblock_plot_transferfn(R, fs);
3 % For a DC Blocking filter: H(z) = (1-1/z)/(1 - R/z)
4 % Therefore the coefficients are b = [1 -1], a = [1 -R]
5 b = [1 -1];
6 a = [1 -R];
14 tstr = sprintf("DC Blocking Filter Frequency Response, R = %i", R);
/sof-3.4.0/src/audio/dcblock/
Ddcblock_generic.c1 // SPDX-License-Identifier: BSD-3-Clause
22 int64_t R, int32_t x) in dcblock_generic() argument
25 * R: Q2.30, y_prev: Q1.31 in dcblock_generic()
26 * R * y_prev: Q3.61 in dcblock_generic()
28 int64_t out = ((int64_t)x) - state->x_prev + in dcblock_generic()
29 Q_SHIFT_RND(R * state->y_prev, 61, 31); in dcblock_generic()
31 state->y_prev = sat_int32(out); in dcblock_generic()
32 state->x_prev = x; in dcblock_generic()
34 return state->y_prev; in dcblock_generic()
45 int16_t *x = source->r_ptr; in dcblock_s16_default()
[all …]
Ddcblock_hifi4.c1 // SPDX-License-Identifier: BSD-3-Clause
17 static inline ae_int32x2 dcblock_cal(ae_int32x2 R, ae_int32x2 state_x, ae_int32x2 state_y, in dcblock_cal() argument
22 /* R: Q2.30, y_prev: Q1.31 the result is Q2.62 */ in dcblock_cal()
23 temp = AE_MULF32S_LL(R, state_y); in dcblock_cal()
36 AE_SETCBEGIN0(source->addr); in dcblock_set_circular()
37 AE_SETCEND0(source->end_addr); in dcblock_set_circular()
40 AE_SETCBEGIN1(sink->addr); in dcblock_set_circular()
41 AE_SETCEND1(sink->end_addr); in dcblock_set_circular()
53 ae_int32x2 R, state_x, state_y, sample; in dcblock_s16_default() local
56 int nch = source->channels; in dcblock_s16_default()
[all …]
Ddcblock_hifi3.c1 // SPDX-License-Identifier: BSD-3-Clause
17 static inline ae_int32x2 dcblock_cal(ae_int32x2 R, ae_int32x2 state_x, ae_int32x2 state_y, in dcblock_cal() argument
22 /* R: Q2.30, y_prev: Q1.31 the result is Q2.62 */ in dcblock_cal()
23 temp = AE_MULF32S_LL(R, state_y); in dcblock_cal()
35 AE_SETCBEGIN0(source->addr); in dcblock_set_circular()
36 AE_SETCEND0(source->end_addr); in dcblock_set_circular()
46 ae_int16 *src = (ae_int16 *)source->r_ptr; in dcblock_s16_default()
47 ae_int16 *dst = (ae_int16 *)sink->w_ptr; in dcblock_s16_default()
50 ae_int32x2 R, state_x, state_y, sample; in dcblock_s16_default() local
53 int nch = source->channels; in dcblock_s16_default()
[all …]
/sof-3.4.0/src/include/sof/audio/cadence/aac_dec/
Dxa_aac_dec_api.h2 * Copyright (c) 2006-2020 Cadence Design Systems, Inc.
28 /* aac_dec-specific configuration parameters */
52 XA_AACDEC_CONFIG_PARAM_RAW_AU_SIDEINFO = 20, /* For DAB-plus only */
53 XA_AACDEC_CONFIG_PARAM_EXTERNALBITRATE = 21, /* For DAB-plus only */
54 XA_AACDEC_CONFIG_PARAM_PAD_SIZE = 22, /* For DAB-plus only */
55 XA_AACDEC_CONFIG_PARAM_PAD_PTR = 23, /* For DAB-plus only */
56 XA_AACDEC_CONFIG_PARAM_MPEGSURR_PRESENT = 24, /* For DAB-plus only */
92 CF Center Front CF -> C CF -> C
93 LF Left Front LF or LCF -> L LF -> L
94 RF Right Front RF or RCF -> R RF -> R
[all …]
/sof-3.4.0/src/arch/xtensa/hal/
Ddebug.c2 // debug.c - debug related constants and functions
156 unsigned char i, m, n, r, s, t, z; in xthal_inst_type() local
169 r = (inst>>16)&0xf; in xthal_inst_type()
183 r = (inst&0xf000)>>12; in xthal_inst_type()
191 switch (r) { in xthal_inst_type()
241 else if ((m==0x1)&&((r==0x0)||(r==0x1))) in xthal_inst_type()
263 if (r==0xf) in xthal_inst_type()
358 inst_type = xthal_inst_type((void *)user_state->pc); in xthal_get_npc()
360 npc = user_state->pc + 3; in xthal_get_npc()
362 npc = user_state->pc + 2; in xthal_get_npc()
[all …]
/sof-3.4.0/test/cmocka/src/math/arithmetic/
Dexponential.c1 // SPDX-License-Identifier: BSD-3-Clause
27 static void gen_exp_testvector(double a, double b, double *r, int32_t *b_i);
29 /* testvector in Q4.28, -5 to +5 */
33 * double *r
37 static void gen_exp_testvector(double a, double b, double *r, int32_t *b_i) in gen_exp_testvector() argument
42 *r = a + rand() % (int32_t)(b - a + 1); in gen_exp_testvector()
43 a2 = *r * 268435456; in gen_exp_testvector()
49 *b_i = (a2 >= -2147483648LL) ? a2 : INT32_MIN; in gen_exp_testvector()
62 double a_tmp = -5.0123456789; in test_math_arithmetic_exponential_fixed()
64 double r; in test_math_arithmetic_exponential_fixed() local
[all …]
/sof-3.4.0/src/include/sof/audio/module_adapter/iadk/
Dprocessing_module_prerequisites.h1 /* SPDX-License-Identifier: BSD-3-Clause
22 /*! \brief enumeration tag for 4-bytes aligned buffer */
24 /*! \brief enumeration tag for 8-bytes aligned buffer */
84 bool operator>(const StreamBufferAlignment &r) const
85 { return value > r.value; }
88 bool operator<(const StreamBufferAlignment &r) const
89 { return value < r.value; }
92 bool operator == (const StreamBufferAlignment &r) const
93 { return value == r.value; }
96 bool operator != (const StreamBufferAlignment &r) const
[all …]
/sof-3.4.0/src/include/ipc4/
Dpipeline.h1 /* SPDX-License-Identifier: BSD-3-Clause
13 * This code is mostly copied "as-is" from existing C++ interface files hence the use of
73 * lp - indicates whether the pipeline should be kept on running in low power
86 /**< priority - uses enum ipc4_pipeline_priority */
97 } r; member
104 /**< 1 - is low power */
111 } r; member
141 } r; member
150 } r; member
202 } r; member
[all …]
Dipcgtw.h1 /* SPDX-License-Identifier: BSD-3-Clause
28 } r; member
35 } r; member
39 /**< Values of ipc4_ipcgtw_cmd::primary.r.cmd */
50 /* Payload (actual size is in the header extension.r.data_size) */
60 /* Total reply size is returned in reply header extension.r.data_size.
Dmodule.h1 /* SPDX-License-Identifier: BSD-3-Clause
10 * This code is mostly copied "as-is" from existing C++ interface files hence the use of
125 } r; member
138 /**< Processing domain, 0-LL, 1-DP */
143 } r; member
165 during run-time. The only way to change pipeline topology is to delete the whole
186 } r; member
202 } r; member
222 } r; member
238 } r; member
[all …]
/sof-3.4.0/scripts/
Dgen-doc.sh2 # SPDX-License-Identifier: BSD-3-Clause
10 set -e
14 echo "usage: $0 <-b|-c|-p> [-r]"
15 echo " [-b] Build"
16 echo " [-c] Clean"
17 echo " [-p] Publish"
18 echo " [-r] Fetch missing repositories"
27 DOCS_REPO="$(dirname "$SOF_REPO")/sof-docs"
41 r) DO_FETCH=true ;;
45 shift "$(($OPTIND - 1))"
[all …]
/sof-3.4.0/scripts/scan/
Dclang-scan-build-xtensa.sh2 # SPDX-License-Identifier: BSD-3-Clause
8 set -eu
11 echo "Usage: $0 -t <toolchain> -c <config> -r <root_dir> [options]"
12 echo " -t Toolchain's name."
13 echo " -c Name of defconfig."
14 echo " -r Xtensa root dir."
15 echo " [-j n] Set number of make build jobs."
16 echo " [-v] Verbose output."
18 echo " $0 -t xt -c tigerlake \\"
19 echo " -r \$CONFIG_PATH/xtensa-elf"
[all …]

12345678910>>...13