/sof-2.7.6/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-2.7.6/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 apollolake \\" 19 echo " -r \$CONFIG_PATH/xtensa-elf" [all …]
|
/sof-2.7.6/tools/test/audio/ |
D | process_test.m | 3 % process_test - test objective audio quality parameters 7 % SPDX-License-Identifier: BSD-3-Clause 8 % Copyright(c) 2017-202 Intel Corporation. All rights reserved. 69 r.pf = -ones(n_bits_in, n_bits_out, n_meas); 78 v = -ones(n_meas,1); % Set pass/fail test verdict to not executed variable 83 v(1) = chirp_test(t); 84 if v(1) ~= -1 && t.full_test 85 [v(2) g] = g_test(t); 86 [v(3) dr] = dr_test(t); 87 [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 11 % fs_out - vector of rates out 13 % A default in-out matrix with 32 bits data is tested if the 17 % SPDX-License-Identifier: BSD-3-Clause 48 t.thdnf_db_max = -80; 49 t.thdnf_db_16b = -60; 52 t.aap_db_max = -60; [all …]
|
/sof-2.7.6/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-2.7.6/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 …]
|
D | c6x-compat.h | 2 * Copyright (c) 2006-2010 Tensilica Inc. ALL RIGHTS RESERVED. 65 x= TESTBIT(x,(NSA_BITS-1))? ~x: x; in norm_shift_amt_U_and_non_U() 66 x= (x&1)|(x<<1); /* Shift up to return count-1 */ in norm_shift_amt_U_and_non_U() 68 return NSA_BITS-1; in norm_shift_amt_U_and_non_U() 73 for (j=0, k=NSA_BITS-1; k>=0; j++, k--) { in norm_shift_amt_U_and_non_U() 100 maxv = (1LL << (n-1)) - 1; in util_saturate_n_no_state() 101 minv = (-1LL << (n-1)); in util_saturate_n_no_state() 116 maxv = (1LL << (n-1)) - 1; in util_saturate_n_sgn() 117 minv = (-1LL << (n-1)); in util_saturate_n_sgn() 133 /* well-behaved signed shift right (left on negative) with [all …]
|
/sof-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/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-2.7.6/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-apl) in 26 incorporated from FW elf file (e.g. sof-apl). `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-2.7.6/scripts/cmake/ |
D | version.cmake | 1 # SPDX-License-Identifier: BSD-3-Clause 4 # 1) .tarball-version file 17 # - current date and time 18 # - git version of the pull request 19 # - git version of the moving branch it's being merged with 29 # --parents SHA are useful. 33 COMMAND git log --parents --oneline --decorate -n 1 HEAD 38 # the same name auto-generated in the top _build_ directory by "make 40 set(TARBALL_VERSION_FILE_NAME ".tarball-version") 44 file(STRINGS ${TARBALL_VERSION_SOURCE_PATH} lines ENCODING "UTF-8") [all …]
|
/sof-2.7.6/scripts/ |
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 …]
|
D | xtensa-build-all.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 6 set -e 9 imx8 imx8x imx8m imx8ulp tgl tgl-h rn) 13 BUILD_JOBS=$(nproc --all) 26 # any difference between -j nproc and -j nproc*N is practically 29 if [ -n "$XTENSA_TOOLS_ROOT" ]; then 46 Re-configures and re-builds SOF using the corresponding compiler and the 53 -r Build rom if available (gcc only) 54 -a Build all platforms 55 -u Force UP ARCH [all …]
|
D | docker-qemu.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 8 # ./scripts/docker-qemu.sh ../sof.git/scripts/qemu-check.sh 11 docker run -i --shm-size=512m --privileged -v `pwd`:/home/sof/sof.git \ 12 --user `id -u` sofqemu $@
|
D | docker-run.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 9 # ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh byt 11 # ./scripts/docker-run.sh ./scripts/build-tools.sh 13 # set -x 15 if tty --quiet; then 16 SOF_DOCKER_RUN="$SOF_DOCKER_RUN --tty" 19 docker run -i -v "$(pwd)":/home/sof/work/sof.git \ 20 --env CMAKE_BUILD_TYPE \ 21 --env PRIVATE_KEY_OPTION \ 22 --env http_proxy="$http_proxy" \ [all …]
|
/sof-2.7.6/src/lib/ |
D | lib.c | 1 // SPDX-License-Identifier: BSD-3-Clause 16 /* used by gcc - but uses arch_memcpy internally */ 27 uint8_t v = c; in memset() local 31 d8[i] = v; in memset() 43 return *s1 < *s2 ? -1 : 1; in memcmp() 46 count--; in memcmp() 76 /* generic strlen - TODO: can be optimsed for ARCH ? */ 83 return (p - s) - 1; in rstrlen() 91 return -1; in rstrcmp() 102 return -1; in rstrcmp()
|
/sof-2.7.6/ |
D | .travis.yml | 1 --- 2 # Suggested tools that can save round-trips to github and a lot of time: 6 # yaml merge-expand .travis.yml exp.yml && diff -b -u .travis.yml exp.yml 16 - docker 23 - buildonly 24 - tests 27 # 'name:'-less jobs appear with their env, e.g.: PLATFORM=tgl 33 - &build-platform 36 &docker-pull-sof 39 ./scripts/docker-run.sh ./scripts/xtensa-build-all.sh -r $PLATFORM [all …]
|
/sof-2.7.6/.github/workflows/ |
D | zephyr.yml | 1 --- 7 # yamllint disable-line rule:truthy 11 zephyr-build: 12 runs-on: ubuntu-20.04 14 - uses: actions/checkout@v2 16 with: {fetch-depth: 10, submodules: recursive} 18 - name: build 19 run: docker run -v "$(pwd)":/workdir 20 -e ZEPHYR_SDK_INSTALL_DIR='/opt/toolchains/zephyr-sdk-0.13.0' 21 docker.io/zephyrprojectrtos/zephyr-build:v0.18.3 [all …]
|
/sof-2.7.6/src/audio/smart_amp/dsm_api/inc/ |
D | dsm_api_public.h | 1 /* SPDX-License-Identifier: BSD-3-Clause 151 * ichannelmask: the low 8-bits indicate which channels should be executed. 156 * -1: place input L channel onto output R channel 157 * -2: place input R channel onto output L channel 158 * -3: switch L and R channel 159 * ibufferorg: the input buffer which contains 16-bit audio PCM input data. 160 * The multi-channel input PCM data are ordered in the format below: 161 * +-----------------------+ ... +-------------------------+ 163 * +-----------------------+ ... +-------------------------+ 164 * 1st channel ... N-th channel [all …]
|