/sof-2.7.6/tools/topology/topology1/ |
D | get_abi.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 6 set -e 8 MAJOR=`grep '#define SOF_ABI_MAJOR ' $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o` 9 MINOR=`grep '#define SOF_ABI_MINOR ' $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o` 10 PATCH=`grep '#define SOF_ABI_PATCH ' $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o` 12 $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o` 14 $1/src/include/kernel/abi.h | grep -E ".[[:digit:]]$" -o`
|
/sof-2.7.6/src/audio/drc/ |
D | drc_math_hifi3.c | 1 // SPDX-License-Identifier: BSD-3-Clause 5 // Author: Pin-chih Lin <johnylin@google.com> 16 #define LOG10_FUNC_A4_Q26 -285795039 /* Q_CONVERT_FLOAT(-4.258677959442138671875f, 26) */ 18 #define LOG10_FUNC_A2_Q26 -410610303 /* Q_CONVERT_FLOAT(-6.1185703277587890625f, 26) */ 20 #define LOG10_FUNC_A0_Q26 -81731487 /* Q_CONVERT_FLOAT(-1.217894077301025390625f, 26) */ 23 #define NEG_1K_Q21 -2097151999 /* Q_CONVERT_FLOAT(-1000.0f, 21) */ 25 #define NEG_30_Q26 -2013265919 /* Q_CONVERT_FLOAT(-30.0f, 26) */ 27 #define ASIN_FUNC_A5L_Q30 43190596 /* Q_CONVERT_FLOAT(4.0224377065896987915039062e-2f, 30) */ 31 #define ASIN_FUNC_A5H_Q26 -2024625535 /* Q_CONVERT_FLOAT(-30.1692714691162109375f, 26) */ 33 #define ASIN_FUNC_A1H_Q26 -261361631 /* Q_CONVERT_FLOAT(-3.894591808319091796875f, 26) */ [all …]
|
D | drc_math_generic.c | 1 // SPDX-License-Identifier: BSD-3-Clause 5 // Author: Pin-chih Lin <johnylin@google.com> 22 static inline int32_t rexp_fixed(int32_t x, int32_t precision_x, int32_t *e) in rexp_fixed() argument 24 int32_t bit = 31 - norm_int32(x); in rexp_fixed() 26 *e = bit - precision_x; in rexp_fixed() 37 * Output range ~ (-inf, 1.505); regulated to Q6.26: (-32.0, 32.0) 44 * max err ~= 6.088e-8 in log10_fixed() 48 const int32_t A4 = Q_CONVERT_FLOAT(-4.258677959442138671875f, qc); in log10_fixed() 50 const int32_t A2 = Q_CONVERT_FLOAT(-6.1185703277587890625f, qc); in log10_fixed() 52 const int32_t A0 = Q_CONVERT_FLOAT(-1.217894077301025390625f, qc); in log10_fixed() [all …]
|
/sof-2.7.6/tools/test/audio/std_utils/ |
D | stdweight.m | 6 % x - input signal 7 % fs - sample rate 10 % y - filtered signal 46 %% From https://en.wikipedia.org/wiki/ITU-R_468_noise_weighting 47 h1 = -4.737338981378384e-24*f.^6 +2.043828333606125e-15*f.^4 -1.363894795463638e-7*f.^2 +1; 48 h2 = 1.306612257412824e-19*f.^5 -2.118150887518656e-11*f.^3 +5.559488023498642e-4*f; 49 RITU = 1.246332637532143e-4*f./sqrt(h1.^2+h2.^2); 50 ITU = 18.2+20*log10(RITU)-5.63; % AES17 CCIR-RMS 52 ga = [-35.5 -29.5 -25.4 -19.4 -13.4 -7.5 -5.6 0 3.4 4.9 6.1 6.6 6.4 5.8 4.5 2… 54 tl = [ -2.0 -1.4 -1.0 -0.85 -0.70 -0.55 -0.50 -0.50 -0.50 -0.50 -0.50 -0.01 -0.20 -0.40 -0.60 -0.… [all …]
|
D | fr_test_input.m | 9 % t.f_max - maximum frequency of sweep, set e.g. to 0.99*fs/2 10 % t.fs - sample rate 11 % t.bits_in - number of bits in signal 12 % t.ch - mix test signal to channel ch, e.g. set to [1 2] to measure 14 % t.nch - total number of channels in data 17 % t.fn_in - Created input file name 18 % t.fn_out - Proposed output file name for captured output 19 % t.f_ref - Reference frequency used to report deviation (997 Hz) 20 % t.f_min - Sweep start frequency 21 % t.f - Frequencies in sweep [all …]
|
D | g_test_input.m | 9 % t.fs - sample rate 10 % t.bits_in - signal word length 11 % t.ch - mix test signal to channel ch 12 % t.nch - total number of channels in data 15 % t.fn_in - created input file name 16 % t.fn_out - proposed output file name for captured output 17 % t.f - test signal frequency 18 % t.tl - tone length in seconds 19 % t.ts - tone start time 20 % t.tr - tone gain ramp length in seconds [all …]
|
/sof-2.7.6/scripts/cmake/ |
D | dist.cmake | 1 # SPDX-License-Identifier: BSD-3-Clause 5 # Warning: a ".tarball-version" at the top of the source directory takes 9 set(TAR_BASENAME sof-${GIT_TAG}) 15 COMMAND git archive --prefix=${TAR_BASENAME}/ -o "${TARBALL_PATH_TMP}" HEAD 17 # .tarball-version in the top build directory for git users' convenience 18 COMMAND ${CMAKE_COMMAND} -E echo "${GIT_TAG}" > "${TARBALL_VERSION_BINARY_PATH}" 19 COMMAND ${CMAKE_COMMAND} -E echo "${GIT_LOG_HASH}" >> "${TARBALL_VERSION_BINARY_PATH}" 21 # ${TAR_BASENAME}/.tarball-version for the release tarball 22 COMMAND ${CMAKE_COMMAND} -E make_directory "${PROJECT_BINARY_DIR}/${TAR_BASENAME}" 23 …COMMAND ${CMAKE_COMMAND} -E copy "${TARBALL_VERSION_BINARY_PATH}" "${PROJECT_BINARY_DIR}/${TAR_BAS… [all …]
|
D | kconfig.cmake | 1 # SPDX-License-Identifier: BSD-3-Clause 6 ### configure-time .config ### 12 # Default value when no -DINIT_CONFIG on the command line 15 # - ".' is the top source directory. 16 # - "src/arch/${arch}/configs" is for convenience and compatibility with 18 # - First found wins. 19 # - If two archs ever use the same platform_defconfig name then a full 20 # path must be used, e.g.: -DINIT_CONFIG=src/arch/myarch/collision_defconfig 38 "IGNORING '-DINIT_CONFIG=${INIT_CONFIG}!!' " 39 "Using up-to-date ${INIT_CONFIG_found} instead." [all …]
|
D | defconfigs.cmake | 1 # SPDX-License-Identifier: BSD-3-Clause 15 COMMAND ${CMAKE_COMMAND} -E copy 18 COMMAND ${CMAKE_COMMAND} -E env 38 COMMAND ${CMAKE_COMMAND} -E copy 41 COMMAND ${CMAKE_COMMAND} -E env
|
/sof-2.7.6/tools/test/topology/ |
D | test-all.m4 | 23 # Machine Specific Config - !! MUST BE SET TO MATCH TEST MACHINE DRIVER !! 25 # TEST_PIPE_NAME - Pipe name 26 # TEST_DAI_LINK_NAME - BE DAI link name e.g. "NoCodec" 27 # TEST_DAI_PORT - SSP port number e.g. 2 28 # TEST_DAI_FORMAT - SSP data format e.g s16le 29 # TEST_PIPE_FORMAT - Pipeline format e.g. s16le 30 # TEST_SSP_MCLK - SSP BCLK in Hz 31 # TEST_SSP_BCLK - SSP BCLK in Hz 32 # TEST_SSP_PHY_BITS - SSP physical slot size 33 # TEST_SSP_DATA_BITS - SSP data slot size [all …]
|
D | test-capture.m4 | 23 # Apply a non-trivial filter blob IIR and FIR tests. TODO: Note that the 25 ifelse(TEST_PIPE_NAME, `eq-iir', `define(PIPELINE_FILTER1, `eq_iir_coef_loudness.m4')') 26 ifelse(TEST_PIPE_NAME, `eq-fir', `define(PIPELINE_FILTER2, `eq_fir_coef_loudness.m4')') 30 # Machine Specific Config - !! MUST BE SET TO MATCH TEST MACHINE DRIVER !! 32 # TEST_PIPE_NAME - Pipe name 33 # TEST_DAI_LINK_NAME - BE DAI link name e.g. "NoCodec" 34 # TEST_DAI_PORT - SSP port number e.g. 2 35 # TEST_DAI_FORMAT - SSP data format e.g s16le 36 # TEST_PIPE_FORMAT - Pipeline format e.g. s16le 37 # TEST_SSP_MCLK - SSP MCLK in Hz [all …]
|
D | test-tone-playback.m4 | 21 # Machine Specific Config - !! MUST BE SET TO MATCH TEST MACHINE DRIVER !! 23 # TEST_PIPE_NAME - Pipe name 24 # TEST_DAI_LINK_NAME - BE DAI link name e.g. "NoCodec" 25 # TEST_DAI_PORT - SSP port number e.g. 2 26 # TEST_DAI_FORMAT - SSP data format e.g s16le 27 # TEST_PIPE_FORMAT - Pipeline format e.g. s16le 28 # TEST_SSP_MCLK - SSP MCLK in Hz 29 # TEST_SSP_BCLK - SSP BCLK in Hz 30 # TEST_SSP_PHY_BITS - SSP physical slot size 31 # TEST_SSP_DATA_BITS - SSP data slot size [all …]
|
D | test-playback.m4 | 23 define(`upcase', `translit(`$*', `a-z', `A-Z')') 26 # Machine Specific Config - !! MUST BE SET TO MATCH TEST MACHINE DRIVER !! 28 # TEST_PIPE_NAME - Pipe name 29 # TEST_DAI_LINK_NAME - BE DAI link name e.g. "NoCodec" 30 # TEST_DAI_PORT - SSP port number e.g. 2 31 # TEST_DAI_FORMAT - SSP data format e.g s16le 32 # TEST_PIPE_FORMAT - Pipeline format e.g. s16le 33 # TEST_SSP_MCLK - SSP MCLK in Hz 34 # TEST_SSP_BCLK - SSP BCLK in Hz 35 # TEST_SSP_PHY_BITS - SSP physical slot size [all …]
|
/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/zephyr/ |
D | docker-build.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 10 set -e 11 set -x 15 # Make sure we're in the right place; chgrp -R below. 16 test -e ./scripts/xtensa-build-zephyr.sh 18 sudo apt-get update 19 sudo apt-get -y install tree 21 if test -e zephyrproject; then 22 ./scripts/xtensa-build-zephyr.sh -a 24 # Matches docker.io/zephyrprojectrtos/zephyr-build:latest gid [all …]
|
/sof-2.7.6/src/arch/xtensa/ |
D | CMakeLists.txt | 1 # SPDX-License-Identifier: BSD-3-Clause 3 # platform-specific values 24 set(RIMAGE_MOD_OFFSET_FLAG -x 24) 75 set(stdlib_flag "-nostdlib") 82 target_compile_definitions(sof_options INTERFACE -D__XTENSA__=1) 87 find_program(XCC_PATH NAMES "xt-xcc" PATHS ENV PATH NO_DEFAULT_PATH) 89 target_include_directories(sof_options INTERFACE ${XCC_DIR}/../xtensa-elf/include) 95 set(XTENSA_C_ASM_FLAGS -m32) 98 set(XTENSA_C_ASM_FLAGS -mlongcalls) 99 set(XTENSA_C_FLAGS -mtext-section-literals) [all …]
|
/sof-2.7.6/tools/tune/tdfb/ |
D | example_line_array.m | 9 % SPDX-License-Identifier: BSD-3-Clause 17 for az = [0 30 60 90 -30 -60 -90] 18 for d = [50e-3 68e-3]; 27 for az = [0 30 60 90 -30 -60 -90] 29 line4_one_beam(fs, 28e-3, az, 64); 31 line4_one_beam(fs, 78e-3, az, 100);
|
D | example_two_beams.m | 6 % points to -90 or -25 degrees and other to +90 or +25 degrees 14 % SPDX-License-Identifier: BSD-3-Clause 29 d = 50e-3; % 50 mm spacing 31 a2 = -az; % Azimuth -az deg 37 d = 68e-3; % 68 mm spacing 39 a2 = -az; % Azimuth -az deg 45 d = 28e-3; % 28 mm spacing 47 a2 = -az; % Azimuth -az deg 53 d = 78e-3; % 78 mm spacing 55 a2 = -az; % Azimuth -az deg [all …]
|
/sof-2.7.6/src/ipc/ipc3/ |
D | host-page-table.c | 1 // SPDX-License-Identifier: BSD-3-Clause 30 struct dma_sg_elem *e; in ipc_parse_page_descriptors() local 34 * of (ring->pages - 1, ring->pages] * PAGES. in ipc_parse_page_descriptors() 36 if ((ring->size <= HOST_PAGE_SIZE * (ring->pages - 1)) || in ipc_parse_page_descriptors() 37 (ring->size > HOST_PAGE_SIZE * ring->pages)) { in ipc_parse_page_descriptors() 40 return -EINVAL; in ipc_parse_page_descriptors() 43 elem_array->elems = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, in ipc_parse_page_descriptors() 44 sizeof(struct dma_sg_elem) * ring->pages); in ipc_parse_page_descriptors() 45 if (!elem_array->elems) { in ipc_parse_page_descriptors() 47 sizeof(struct dma_sg_elem) * ring->pages); in ipc_parse_page_descriptors() [all …]
|
/sof-2.7.6/.github/ISSUE_TEMPLATE/ |
D | bug_report.md | 1 --- 8 --- 13 Please also read https://thesofproject.github.io/latest/contribute/process/bug-tracking.html for fu… 16 Steps to reproduce the behavior: (e.g. list commands or actions used to reproduce the bug) 19 How often does the issue happen ? i.e. 1/10 (once in ten attempts), 1/1000 or all the time. 26 What impact does this issue have on your progress (e.g., annoyance, showstopper) 38 If applicable, add a screenshot (drag-and-drop an image), or console logs 39 (cut-and-paste text and put a code fence (\`\`\`) before and after, to help 42 …lete reference). Kernel log is taken from *dmesg* and firmware log from *sof-logger*. See https://…
|
/sof-2.7.6/tools/topology/topology2/include/components/ |
D | buffer.conf | 6 # Usage: this component can be used by instantiating it in the parent object. i.e. 28 <include/components/widget-common.conf> 134 uuid "92:4c:54:42:92:8e:41:4e:b6:79:34:51:9f:1c:1d:28"
|
D | volume.conf | 7 # Usage: this component can be used by declaring int a parent object. i.e. 29 <include/components/widget-common.conf> 164 uuid "7e:67:7e:b7:f4:5f:88:41:af:14:fb:a8:bd:bf:86:82"
|
/sof-2.7.6/tools/tune/drc/ |
D | drc_gen_coefs.m | 23 coefs.knee_beta = -exp(k * coefs.linear_threshold) / k; 27 coefs.ratio_base = y0 * (coefs.knee_threshold ^ (-coefs.slope)); 41 coefs.sat_release_frames_inv_neg = -1 / sat_release_frames; 42 coefs.sat_release_rate_at_neg_two_db = db2mag(-2 * coefs.sat_release_frames_inv_neg) - 1; 47 % Polynomial of the form y = a + b*x + c*x^2 + d*x^3 + e*x^4 53 coefs.kA = 0.9999999999999998 * y(1) + 1.8432219684323923e-16 * y(2) ... 54 - 1.9373394351676423e-16 * y(3) + 8.824516011816245e-18 * y(4); 55 coefs.kB = -1.5788320352845888 * y(1) + 2.3305837032074286 * y(2) ... 56 - 0.9141194204840429 * y(3) + 0.1623677525612032 * y(4); 57 coefs.kC = 0.5334142869106424 * y(1) - 1.272736789213631 * y(2) ... [all …]
|
/sof-2.7.6/test/cmocka/src/lib/preproc/ |
D | get_arg.c | 1 // SPDX-License-Identifier: BSD-3-Clause 19 const char* what_we_get = _META_GET_ARG_1("a", "B", "c", "D", "e"); in test_lib_preproc_get_arg_1() 29 const char* what_we_get = _META_GET_ARG_2("a", "B", "c", "D", "e"); in test_lib_preproc_get_arg_2()
|
/sof-2.7.6/scripts/ |
D | qemu-check.sh | 2 # SPDX-License-Identifier: BSD-3-Clause 4 set -e 12 rm -f dump-*.txt 26 usage: qemu-check.sh [ platform(s) ] 34 local xhs=xtensa-host.sh 36 if test -e "$d"/$xhs; then 50 shift $((OPTIND-1)) 53 if [ "$#" -eq 0 ]; then 76 FWNAME="sof-$platform.ri" 86 SHM_IPC_REG=qemu-bridge-shim-io [all …]
|