/sof-2.7.6/test/cmocka/src/math/numbers/ |
D | gcd.c | 1 // 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 …]
|
D | norm_int32.c | 1 // 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()
|
D | find_equal_int16.c | 1 // 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()
|
D | find_min_int16.c | 1 // SPDX-License-Identifier: BSD-3-Clause 21 int r = find_min_int16(vec, ARRAY_SIZE(vec)); in test_math_numbers_find_min_int16_for_2_equals_2() local 23 assert_int_equal(r, 2); in test_math_numbers_find_min_int16_for_2_equals_2() 32 int r = find_min_int16(vec, ARRAY_SIZE(vec)); in test_math_numbers_find_min_int16_for_5_2_3_4_1_equals_1() local 34 assert_int_equal(r, 1); in test_math_numbers_find_min_int16_for_5_2_3_4_1_equals_1()
|
D | find_max_abs_int32.c | 1 // SPDX-License-Identifier: BSD-3-Clause 21 int32_t vec[] = {-100, 99, 98, 50}; in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_equals_100() 22 int r = find_max_abs_int32(vec, ARRAY_SIZE(vec)); in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_equals_100() local 24 assert_int_equal(r, 100); in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_equals_100() 32 int32_t vec[] = {-100, 99, 98, 50, 101}; in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_101_equals_101() 33 int r = find_max_abs_int32(vec, ARRAY_SIZE(vec)); in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_101_equals_101() local 35 assert_int_equal(r, 101); in test_math_numbers_find_max_abs_int32_for_neg100_99_98_50_101_equals_101()
|
D | ceil_divide.c | 1 // SPDX-License-Identifier: BSD-3-Clause 22 -1000, in test_math_numbers_ceil_divide() 25 -10, in test_math_numbers_ceil_divide() 27 -6, in test_math_numbers_ceil_divide() 29 -2 in test_math_numbers_ceil_divide() 37 int r = ceil_divide(params[i], params[j]); in test_math_numbers_ceil_divide() local 39 if (r != ref) { in test_math_numbers_ceil_divide() 41 params[i], params[j], r, ref); in test_math_numbers_ceil_divide() 44 assert_int_equal(r, ref); in test_math_numbers_ceil_divide()
|
/sof-2.7.6/test/cmocka/src/lib/lib/ |
D | rstrcmp.c | 1 // 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 …]
|
D | rstrlen.c | 1 // 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-2.7.6/tools/test/audio/ |
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 …]
|
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. 64 r.bits_in_list = bits_in_list; 65 r.bits_out_list = bits_out_list; 66 r.g = NaN(n_bits_in, n_bits_out); 67 r.dr = NaN(n_bits_in, n_bits_out); 68 r.thdnf = NaN(n_bits_in, n_bits_out); 69 r.pf = -ones(n_bits_in, n_bits_out, n_meas); 70 r.n_fail = 0; [all …]
|
/sof-2.7.6/src/ipc/ipc4/ |
D | handler.c | 1 // SPDX-License-Identifier: BSD-3-Clause 5 // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> 59 tr_dbg(&ipc_tr, "ipc4 delete pipeline %x:", (uint32_t)pipe->header.r.instance_id); in ipc4_delete_pipeline() 61 return ipc_pipeline_free(ipc, pipe->header.r.instance_id); in ipc4_delete_pipeline() 68 struct pipeline_data *ppl_data = ctx->comp_data; in ipc4_comp_params() 72 if (current->state == COMP_STATE_ACTIVE) in ipc4_comp_params() 75 err = comp_params(current, &ppl_data->params->params); in ipc4_comp_params() 97 return param_ctx.comp_func(host, NULL, ¶m_ctx, host->direction); in ipc4_pipeline_params() 108 if (!pcm_dev->cd->pipeline) { in ipc4_pcm_params() 109 tr_err(&ipc_tr, "ipc: comp %d pipeline not found", pcm_dev->id); in ipc4_pcm_params() [all …]
|
D | helper.c | 1 // SPDX-License-Identifier: BSD-3-Clause 5 // Author: Liam Girdwood <liam.r.girdwood@linux.intel.com> 22 #include <ipc4/base-config.h> 56 drv = ipc4_get_comp_drv(IPC4_MOD_ID(comp->id)); in comp_new() 60 if (ipc4_get_comp_dev(comp->id)) { in comp_new() 61 tr_err(&ipc_tr, "comp %d exists", comp->id); in comp_new() 65 if (comp->core >= CONFIG_CORE_COUNT) { in comp_new() 66 tr_err(&ipc_tr, "ipc: comp->core = %u", comp->core); in comp_new() 71 ipc_config.id = comp->id; in comp_new() 72 ipc_config.pipeline_id = comp->pipeline_id; in comp_new() [all …]
|
/sof-2.7.6/src/audio/dcblock/ |
D | dcblock_generic.c | 1 // SPDX-License-Identifier: BSD-3-Clause 18 int64_t R, int32_t x) in dcblock_generic() argument 21 * R: Q2.30, y_prev: Q1.31 in dcblock_generic() 22 * R * y_prev: Q3.61 in dcblock_generic() 24 int64_t out = ((int64_t)x) - state->x_prev + in dcblock_generic() 25 Q_SHIFT_RND(R * state->y_prev, 61, 31); in dcblock_generic() 27 state->y_prev = sat_int32(out); in dcblock_generic() 28 state->x_prev = x; in dcblock_generic() 30 return state->y_prev; in dcblock_generic() 43 int32_t R; in dcblock_s16_default() local [all …]
|
/sof-2.7.6/tools/tune/dcblock/ |
D | dcblock_plot_stepfn.m | 1 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);
|
D | dcblock_plot_transferfn.m | 1 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-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> 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-2.7.6/src/include/ipc4/ |
D | base-config.h | 1 /* SPDX-License-Identifier: BSD-3-Clause 13 * This code is mostly copied "as-is" from existing C++ interface files hence the use of 19 * \file include/ipc4/base-config.h 52 IPC4_DEPTH_24BIT = 24, /**< 24 bits depth - Default */ 60 IPC4_CHANNEL_CONFIG_STEREO = 1, /**< L & R */ 61 IPC4_CHANNEL_CONFIG_2_POINT_1 = 2, /**< L, R & LFE; PCM only */ 62 IPC4_CHANNEL_CONFIG_3_POINT_0 = 3, /**< L, C & R; MP3 & AAC only */ 63 IPC4_CHANNEL_CONFIG_3_POINT_1 = 4, /**< L, C, R & LFE; PCM only */ 64 IPC4_CHANNEL_CONFIG_QUATRO = 5, /**< L, R, Ls & Rs; PCM only */ 65 IPC4_CHANNEL_CONFIG_4_POINT_0 = 6, /**< L, C, R & Cs; MP3 & AAC only */ [all …]
|
D | pipeline.h | 1 /* 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 */ 110 } r; member 140 } r; member 149 } r; member 201 } r; member [all …]
|
/sof-2.7.6/src/include/sof/audio/cadence/aac_dec/ |
D | xa_aac_dec_api.h | 2 * 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-2.7.6/src/arch/xtensa/hal/ |
D | debug.c | 2 // 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-2.7.6/scripts/ |
D | gen-doc.sh | 2 # 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-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/fuzzer/ |
D | topology.c | 1 // SPDX-License-Identifier: BSD-3-Clause 53 return -EINVAL; in find_widget() 59 struct sof_ipc_reply r; in complete_pipeline() local 69 fuzzer->msg.header = ready.hdr.cmd; in complete_pipeline() 70 memcpy(fuzzer->msg.msg_data, &ready, ready.hdr.size); in complete_pipeline() 71 fuzzer->msg.msg_size = sizeof(ready); in complete_pipeline() 72 fuzzer->msg.reply_size = sizeof(r); in complete_pipeline() 87 struct sof_ipc_reply r; in load_graph() local 95 fuzzer->tplg_file, i, count); in load_graph() 100 fuzzer->msg.header = connection.hdr.cmd; in load_graph() [all …]
|
/sof-2.7.6/src/arch/xtensa/include/xtensa/ |
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/tools/coredumper/ |
D | sof-coredump-reader.py | 3 # SPDX-License-Identifier: BSD-3-Clause 11 # For more detailed useage, use --help option. 66 …4: ["Level1InterruptCause: Level-1 interrupt as indicated by set level-1 bits in the INTERRUPT reg… 96 archs = archs[:len(archs)-2] 191 ( ( '-a', '--arch' , ), { 199 ( ( '-v', '--verbose' , ), { 203 ( ( '--stdin' , ), { 208 ( ( '-o', '--outfile' , ), { 215 ( ( '--stdout' , ), { 220 ( ( '-c', '--colour', ), { [all …]
|