/sof-3.4.0/tools/tune/mfcc/ |
D | setup_mfcc.m | 4 % cfg - optional MFCC configuration parameters struct, see 10 % SPDX-License-Identifier: BSD-3-Clause 12 % Copyright (c) 2018-2020, Intel Corporation. All rights reserved. 19 cfg.channel = -1; % -1 expect mono, 0 left, 1 right ... 39 cfg.vtln_high = -500.0; % no support 44 cfg.pmin = 5e-10; % Set to 1e-10 for librosa 56 sh32 = [0 -8 -16 -24]; 57 sh16 = [0 -8]; 77 v = q_convert(cfg.sample_frequency, 0); [b8, j] = add_w32b(v, b8, j); variable 78 v = q_convert(cfg.pmin, 31); [b8, j] = add_w32b(v, b8, j); variable [all …]
|
/sof-3.4.0/src/include/sof/drivers/ |
D | esai.h | 1 /* SPDX-License-Identifier: BSD-3-Clause 78 #define ESAI_xFCR_xWA(v) SET_BITS(18, 16, 8 - ((v) >> 2)) argument 82 #define ESAI_xFCR_xFWM(v) SET_BITS(15, 8, (v) - 1) argument 89 #define ESAI_xFCR_TE(x) SET_BITS(7, 2, MASK((x) - 1, 0)) 90 #define ESAI_xFCR_RE(x) SET_BITS(5, 2, MASK((x) - 1, 0)) 136 /* The following macro is actually made to fit the table 16-44 in the i.MX8QXP 139 #define ESAI_xCR_xSWS_VAL(s, w) ((w) < 24 ? ((s) - (w) + (((w) - 8) >> 2)) \ 149 #define ESAI_xCR_TE_SET(v) SET_BITS(5, 0, v) argument 150 #define ESAI_xCR_TE(v) ESAI_xCR_TE_SET(MASK((v) - 1, 0)) argument 152 #define ESAI_xCR_RE_SET(v) SET_BITS(3, 0, v) argument [all …]
|
/sof-3.4.0/src/lib/ |
D | lib.c | 1 // SPDX-License-Identifier: BSD-3-Clause 17 /* used by gcc - but uses arch_memcpy internally */ 28 uint8_t v = c; in memset() local 29 uint32_t v32 = (uint32_t)v | ((uint32_t)v << 8) | in memset() 30 ((uint32_t)v << 16) | ((uint32_t)v << 24); in memset() 32 /* Don't bother with 32-bit copies for up to 7 bytes */ in memset() 33 size_t prefix_sz = n > 2 * sizeof(v32) - 1 ? (uint8_t *)d32 - d8 : n; in memset() 37 d8[i] = v; in memset() 40 for (i = 0; i < (n - prefix_sz) >> 2; i++) in memset() 44 * The starting point now is the prefix plus the number of 32-bit copies in memset() [all …]
|
/sof-3.4.0/scripts/scan/ |
D | clang-scan-build-xtensa.sh | 2 # 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 …]
|
/sof-3.4.0/src/math/ |
D | base2log.c | 1 // SPDX-License-Identifier: BSD-3-Clause 16 * Base-2 logarithm log2(n) 18 * Y = (u) computes the base-2 logarithm of 22 * +------------------+-----------------+--------+--------+ 24 * +----+-----+-------+----+----+-------+--------+--------+ 26 * +----+-----+-------+----+----+-------+--------+--------+ 28 * +------------------+-----------------+--------+--------+ 61 uint64_t v; in base2_logarithm() local 71 /* Skipping for-loop */ in base2_logarithm() 75 /* byte of V, and shift them out to the left. Continue with the */ in base2_logarithm() [all …]
|
D | sqrt_int16.c | 1 // SPDX-License-Identifier: BSD-3-Clause 20 * +------------------+-----------------+--------+--------+ 22 * +----+-----+-------+----+----+-------+--------+--------+ 24 * +----+-----+-------+----+----+-------+--------+--------+ 26 * +------------------+-----------------+--------+--------+ 63 uint16_t v; in sqrt_int16() local 87 * byte of V, and shift them out to the left. Continue with the in sqrt_int16() 88 * shifted V for as many bytes as it has. in sqrt_int16() 90 * one-based index. in sqrt_int16() 91 * Index into the number-of-leading-zeros lookup table. This lookup in sqrt_int16() [all …]
|
/sof-3.4.0/src/debug/gdb/ |
D | ringbuffer.c | 1 // SPDX-License-Identifier: BSD-3-Clause 20 rx->head = rx->tail = 0; in init_buffers() 21 tx->head = tx->tail = 0; in init_buffers() 22 debug->head = debug->tail = 0; in init_buffers() 30 tx->data[tx->head] = c; in put_debug_char() 31 tx->head = ring_next_head(tx); in put_debug_char() 36 unsigned char v; in get_debug_char() local 41 v = rx->data[rx->tail]; in get_debug_char() 42 rx->tail = ring_next_tail(rx); in get_debug_char() 44 return v; in get_debug_char() [all …]
|
/sof-3.4.0/tools/test/audio/ |
D | process_test.m | 1 % process_test - test objective audio quality parameters 5 % SPDX-License-Identifier: BSD-3-Clause 6 % Copyright(c) 2017-2022 Intel Corporation. All rights reserved. 72 r.pf = -ones(n_bits_in, n_bits_out, n_meas); 81 v = -ones(n_meas,1); % Set pass/fail test verdict to not executed variable 86 v(1) = chirp_test(t); 87 if v(1) ~= -1 && t.full_test 88 [v(2), g] = g_test(t); 89 [v(3), dr] = dr_test(t); 90 [v(4), thdnf] = thdnf_test(t); [all …]
|
D | src_test.m | 4 % 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 …]
|
/sof-3.4.0/src/arch/xtensa/include/xtensa/ |
D | core-macros.h | 2 * xtensa/core-macros.h -- C specific definitions 48 * Single-cache-line operations in C-callable inline assembly. 70 * All are made memory-barriers, given that's how they're typically used 130 * or self-modifying code. Therefore, this macro always produces 207 _s -= __s; \ 241 /* upgrades that are performed even with write-thru caches */ 334 # define XTHAL_SET_INTENABLE(v) do { int __intenable = (int)(v); \ argument 340 # define XTHAL_SET_INTSET(v) do { int __interrupt = (int)(v); \ argument 343 # define XTHAL_SET_INTCLEAR(v) do { int __interrupt = (int)(v); \ argument 349 # define XTHAL_SET_CCOUNT(v) do { int __ccount = (int)(v); \ argument [all …]
|
/sof-3.4.0/test/cmocka/src/math/trig/ |
D | acos_16b_fixed.c | 1 // SPDX-License-Identifier: BSD-3-Clause 20 /* ' Error (max = 0.000059799232976), THD+N = -89.824298401466635 (dBc)' */ 28 double v; in test_math_trig_acos_16b_fixed() local 36 v = fabs(u); in test_math_trig_acos_16b_fixed() 38 u = (v >= 0.5) ? floor(u + 0.5) : 0.0; in test_math_trig_acos_16b_fixed() 42 float diff = fabsf(acos_ref_table[indx] - r); in test_math_trig_acos_16b_fixed()
|
D | acos_32b_fixed.c | 1 // SPDX-License-Identifier: BSD-3-Clause 20 /* 'Error (max = 0.000000026077032), THD+N = -157.948952635422842 (dBc)' */ 28 double v; in test_math_trig_acos_32b_fixed() local 36 v = fabs(u); in test_math_trig_acos_32b_fixed() 38 u = (v >= 0.5) ? floor(u + 0.5) : 0.0; in test_math_trig_acos_32b_fixed() 42 float diff = fabsf(acos_ref_table[indx] - r); in test_math_trig_acos_32b_fixed()
|
D | asin_16b_fixed.c | 1 // SPDX-License-Identifier: BSD-3-Clause 19 /* 'Error (max = 0.000059799232976), THD+N = -89.824298401466635 (dBc) */ 28 double v; in test_math_trig_asin_16b_fixed() local 36 v = fabs(u); in test_math_trig_asin_16b_fixed() 38 u = (v >= 0.5) ? floor(u + 0.5) : 0.0; in test_math_trig_asin_16b_fixed() 42 float diff = fabsf(asin_ref_table[indx] - r); in test_math_trig_asin_16b_fixed()
|
D | asin_32b_fixed.c | 1 // SPDX-License-Identifier: BSD-3-Clause 19 /* 'Error (max = 0.000000027939677), THD+N = -157.454534077921551 (dBc)' */ 28 double v; in test_math_trig_asin_32b_fixed() local 36 v = fabs(u); in test_math_trig_asin_32b_fixed() 38 u = (v >= 0.5) ? floor(u + 0.5) : 0.0; in test_math_trig_asin_32b_fixed() 42 float diff = fabsf(asin_ref_table[indx] - r); in test_math_trig_asin_32b_fixed()
|
/sof-3.4.0/tools/scripts/ |
D | pretty-macro.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 5 # Simple script for printing preprocessor output in human-readable fashion 7 # For more detailed useage, use --h option. 10 -v style="${1}" \ 11 -v regex="${2}" \ 31 | enstyle "1;31" '->|\\.|&'\ 34 | enstyle "32" '0x[A-Za-z0-9]+'\ 45 gcc_params="${params} -E -dD ${infile}" 56 bash -c "$cmd" \ 58 -e 's/;\ /;\n\t/g'\ [all …]
|
/sof-3.4.0/zephyr/include/rtos/ |
D | atomic.h | 1 // SPDX-License-Identifier: BSD-3-Clause 13 * difference but in reality it broke printk("%d / %ld",...) The no-op 18 #define atomic_init(p, v) atomic_set(p, v) argument
|
/sof-3.4.0/tools/tune/tdfb/ |
D | example_all.sh | 3 # SPDX-License-Identifier: BSD-3-Clause 6 set -e 10 OCTAVE_CMD=( octave --no-gui --quiet ) 11 MATLAB_CMD=( matlab -batch ) 14 if command -v matlab &> /dev/null; then 18 elif command -v octave &> /dev/null; then
|
/sof-3.4.0/smex/ |
D | smex.c | 1 // SPDX-License-Identifier: BSD-3-Clause 20 fprintf(stdout, "\t -l log dictionary outfile\n"); in usage() 21 fprintf(stdout, "\t -v enable verbose output\n"); in usage() 22 fprintf(stdout, "\t -h this help message\n"); in usage() 33 while ((opt = getopt(argc, argv, "hl:v")) != -1) { in main() 38 case 'v': in main() 54 if (argc - optind != 1) { in main() 56 return -EINVAL; in main() 70 ret = -EINVAL; in main()
|
/sof-3.4.0/src/arch/xtensa/debug/gdb/ |
D | utilities.c | 1 // SPDX-License-Identifier: BSD-3-Clause 14 #include <xtensa/config/core-isa.h> 49 unsigned long v; in arch_gdb_load_from_memory() local 54 : "=r"(v) in arch_gdb_load_from_memory() 57 ch = v >> (addr & 3) * 8; in arch_gdb_load_from_memory()
|
/sof-3.4.0/tools/tune/eq/ |
D | eq_load_dsp_ini.m | 22 until strcmp(l, "[eq2]\n") || l == -1 24 if l == -1 34 if line == -1 37 [v, count] = sscanf(line, "input_%d = %d"); 39 config = [config, [v(1); v(2)]]; 57 -1, ... % none 65 -1, ... % allpass, not implemented in audio-tuning or in SOF 76 index = r(1) - preamble_offset; 84 if strcmp(field_name, "type") && cras_filter2sof_filter(r(2) + 1) == -1
|
/sof-3.4.0/tools/ |
D | README.md | 15 ### sof-logger 17 sof-logger is used to print logs delivered from FW dma_trace mechanism, by 20 Every entry declared in FW is placed in elf output file (e.g. sof-tgl) in 26 incorporated from FW elf file (e.g. sof-tgl). `snd_sof_logs_header` 30 sof-logger works by reading entry parameters value and entries addresses from 35 Usage sof-logger <option(s)> <file(s)> 37 -h help 38 -l *.ldc_file Specify the *.ldc file 39 -i in_file Get traces from in_file, instead of the default 41 -o out_file Specify the output file, instead of default stdout [all …]
|
/sof-3.4.0/scripts/ |
D | docker-run.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 9 # ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh tgl 11 # ./scripts/docker-run.sh ./scripts/build-tools.sh 13 # set -x 15 set -e 21 docker images --digests "$rep" 24 if tty --quiet; then 25 SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty" 28 # The --user option below can cause the command to run as a user who 30 # ever goes wrong try replacing --user with the newer [all …]
|
D | run-mocks.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 7 set -e 14 Usage: [ -v ] [ -c platform_defconfig ] 16 Re-compiles unit tests with the host toolchain and runs them one by 18 and better looking to run "make -j test". See 34 v) VALGRIND_CMD="valgrind --tool=memcheck --track-origins=yes \ 35 --leak-check=full --show-leak-kinds=all --error-exitcode=1" 42 shift $((OPTIND -1 )) 44 test -z "$1" || usage 49 # -DINIT_CONFIG is ignored after the first time. Invoke make (or [all …]
|
/sof-3.4.0/test/cmocka/src/math/dct/ |
D | ref_dct.m | 1 % ref_auditory - Generate C header files for auditory library unit tests 3 % SPDX-License-Identifier: BSD-3-Clause 65 function v = mat_to_vec(m) 66 v = reshape(transpose(m), prod(size(m)), 1); variable
|
/sof-3.4.0/tools/topology/ |
D | CMakeLists.txt | 8 # there is no protection of tool-specific special characters. 11 # - We don't expect alsatplg to work on Windows any time soon. 12 # - CMake is too afraid to remove the original, no-VERBATIM behavior: 15 # Also note that in alsa-utils commit v1.2.2~15-gcbabe7a3f0cc, alsatplg 22 # Warning: before alsa-utils fix 8e71fba810b87c, 24 # the -o(utput) file. 25 # See bug https://github.com/alsa-project/alsa-utils/issues/126 26 COMMAND alsatplg \$\${VERBOSE:+-v 1} -c ${ARGV0} -o ${ARGV1} 52 # -p to pre-process Topology2.0 conf file 53 COMMAND ALSA_CONFIG_DIR=${CMAKE_SOURCE_DIR}/topology/topology2 alsatplg \$\${VERBOSE:+-v 1} [all …]
|