Home
last modified time | relevance | path

Searched +full:- +full:12 +full:- +full:dev (Results 1 – 13 of 13) sorted by relevance

/sof-3.4.0/src/audio/mixer/
Dmixer.c1 // SPDX-License-Identifier: BSD-3-Clause
14 #include <sof/audio/ipc-config.h>
30 #include <ipc4/base-config.h>
37 /* bc06c037-12aa-417c-9a97-89282e321a76 */
46 struct module_data *mod_data = &mod->priv; in mixer_init()
47 struct comp_dev *dev = mod->dev; in mixer_init() local
50 comp_dbg(dev, "mixer_init()"); in mixer_init()
54 return -ENOMEM; in mixer_init()
56 mod_data->private = md; in mixer_init()
57 mod->verify_params_flags = BUFF_PARAMS_CHANNELS; in mixer_init()
[all …]
/sof-3.4.0/.github/workflows/
Dipc_fuzzer.yml1 ---
8 # yamllint disable-line rule:truthy
12 # For the actual fuzzer see tools/oss-fuzz/README.
14 # https://google.github.io/oss-fuzz/getting-started/continuous-integration/
26 # OUT=unused_dir cmake -B oss-fuzz-build/ -S tools/oss-fuzz/
27 # make -j -C oss-fuzz-build sof_ep fuzz_ipc.o
29 ipc-fuzzer-build:
30 runs-on: ubuntu-latest
32 - name: Build Fuzzers
33 uses: google/oss-fuzz/infra/cifuzz/actions/build_fuzzers@master
[all …]
/sof-3.4.0/src/audio/drc/
Ddrc_generic.c1 // SPDX-License-Identifier: BSD-3-Clause
5 // Author: Pin-chih Lin <johnylin@google.com>
23 #define NEG_TWO_DB_Q30 Q_CONVERT_FLOAT(0.7943282347242815f, 30) /* -2dB = 10^(-2/20); Q2.30 */
32 * (1 - expf(-k * (x - linear_threshold))) / k in knee_curveK()
35 * beta = -expf(k * linear_threshold) / k in knee_curveK()
36 * gamma = -k * x in knee_curveK()
38 knee_exp_gamma = exp_fixed(Q_MULTSR_32X32((int64_t)x, -p->K, 31, 20, 27)); /* Q12.20 */ in knee_curveK()
39 return p->knee_alpha + Q_MULTSR_32X32((int64_t)p->knee_beta, knee_exp_gamma, 24, 20, 24); in knee_curveK()
47 sat_int32(Q_SHIFT_LEFT((int64_t)p->knee_threshold, 24, 31)); in volume_gain()
49 sat_int32(Q_SHIFT_LEFT((int64_t)p->linear_threshold, 30, 31)); in volume_gain()
[all …]
/sof-3.4.0/src/audio/asrc/
Dasrc.c1 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright(c) 2019-2022 Intel Corporation. All rights reserved.
10 #include <sof/audio/ipc-config.h>
34 #include <ipc4/base-config.h>
39 * from being input to low-pass filter.
44 * The low pass function is y(n) = c1 * x(n) + c2 * y(n -1)
45 * coefficient c2 needs to be 1 - c1.
50 typedef void (*asrc_proc_func)(struct comp_dev *dev,
61 /* c8ec72f6-8526-4faf-9d39-a23d0b541de2 */
65 /* 66b4402d-b468-42f2-81a7-b37121863dd4 */
[all …]
/sof-3.4.0/scripts/
Dfuzz.sh2 set -e
22 # Versions 12+ have all been observed to work.
28 # fuzz.sh -t 300 -- -DOVERLAY_CONFIG=..., etc...
35 --- a/src/ipc/ipc3/handler.c
37 @@ -1609,6 +1609,8 @@ void ipc_boot_complete_msg(struct ipc_cmd_hdr *header, uint32_t data)
51 # Parse "$@". getopts stops after '--'
61 # Pass all "$@" arguments remaining after '--' to cmake.
62 # This also drops _leading_ '--'.
63 shift $((OPTIND-1))
67 : "${FUZZER_STDOUT:=/dev/stdout}" # bashism
[all …]
Dcheckpatch.pl2 # SPDX-License-Identifier: GPL-2.0
7 # (c) 2008-2010 Andy Whitcroft <apw@canonical.com>
8 # (c) 2010-2018 Joe Perches <joe@perches.com>
25 my $SOF = 1; # enables SOF-specific behaviour
69 my $docsfile = "$D/../Documentation/dev-tools/checkpatch.rst";
72 my $allow_c99_comments = 1; # Can be overridden by --ignore C99_COMMENT_TOLERANCE
74 my $git_command ='export LANGUAGE=en_US.UTF-8; git';
86 -q, --quiet quiet
87 -v, --verbose verbose mode
88 --no-tree run without a kernel tree
[all …]
/sof-3.4.0/tools/tune/eq/
Dmls_freq_resp.m7 % id - A string identifier for test case. An id 'selftest' is for special
13 % f - Frequency vector in Hz
14 % m - Measured magnitude responses in dB
20 % The script will return also a text CSV format file with name mls-<id>.txt.
23 % SPDX-License-Identifier: BSD-3-Clause
25 % Copyright (c) 2018-2020, Intel Corporation. All rights reserved.
33 t_tot = 10e-3; % MLS analysis window length in s
35 a_mls_db = -10; % MLS test signal amplitude in dB
40 capture_level_max_db = -1; % Expected max. level
41 capture_level_min_db = -30; % Expacted min. level
[all …]
/sof-3.4.0/src/ipc/ipc4/
Dhelper.c1 // SPDX-License-Identifier: BSD-3-Clause
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()
77 struct comp_dev *dev; in comp_new_ipc4() local
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/probe/
Dprobe.c1 // SPDX-License-Identifier: BSD-3-Clause
3 // Copyright(c) 2019-2022 Intel Corporation. All rights reserved.
31 /* 7CAD0808-AB10-CD23-EF45-12AB34CD56EF */
37 /* 9d1fb66e-4ffb-497f-994b-17719686596e */
46 /* 2f0b1901-cac0-4b87-812f-f2d5e4f19e4a */
47 DECLARE_SOF_UUID("probe-task", probe_task_uuid, 0x2f0b1901, 0xcac0, 0x4b87,
103 buffer->addr = (uintptr_t)rballoc_align(0, SOF_MEM_CAPS_DMA, in probe_dma_buffer_init()
106 if (!buffer->addr) { in probe_dma_buffer_init()
108 return -ENOMEM; in probe_dma_buffer_init()
111 bzero((void *)buffer->addr, size); in probe_dma_buffer_init()
[all …]
/sof-3.4.0/xtos/include/sof/lib/
Ddma.h1 /* SPDX-License-Identifier: BSD-3-Clause
47 #define DMA_DIR_MEM_TO_DEV BIT(3) /**< local mem to dev copy */
48 #define DMA_DIR_DEV_TO_MEM BIT(4) /**< dev to local mem copy */
49 #define DMA_DIR_DEV_TO_DEV BIT(5) /**< dev to dev copy */
61 /* DMA dev type bitmasks used to define the type of DMA */
75 #define DMA_DEV_HS_VIRTUAL BIT(12) /**< connectable to ACP HS VIRTUAL I2S */
269 * Users can request DMAC based on dev type, copy direction, capabilities
274 struct dma *dma_get(uint32_t dir, uint32_t caps, uint32_t dev, uint32_t flags);
284 (dma->priv_data = data)
286 dma->priv_data
[all …]
/sof-3.4.0/src/include/sof/audio/asrc/
Dasrc_farrow.h1 /* SPDX-License-Identifier: BSD-3-Clause
3 * Copyright(c) 2012-2019 Intel Corporation. All rights reserved.
12 * The sample rate converter is based on the so-called Farrow structure.
13 * It supports multi-channel operation, and the PCM samples can be
18 * offers two modes of operation: push-mode and pull-mode.
20 * @image html Push_mode-Pull_mode-Use_case_150dpi.png
21 * "Push-mode vs. pull-mode operation"
22 * @image rtf Push_mode-Pull_mode-Use_case_150dpi.png
24 * If the sample rate converter operates in push-mode, the caller can
28 * the push-mode sample rate converter is usually combined with a ring
[all …]
/sof-3.4.0/src/platform/mt8195/include/arch/xtensa/config/
Dcore-isa.h2 * xtensa/config/core-isa.h -- HAL definitions that are dependent on Xtensa
9 Customer ID=16233; Build=0x89932; Copyright (c) 1999-2020 Tensilica Inc.
33 /* depot/dev/Homewood/Xtensa/SWConfig/hal/core-common.h.tph#24 - edit change 444323 (text+ko) */
45 /*----------------------------------------------------------------------
47 ----------------------------------------------------------------------*/
49 #define XCHAL_HAVE_BE 0 /* big-endian byte ordering */
55 #define XCHAL_HAVE_DENSITY 1 /* 16-bit instructions */
56 #define XCHAL_HAVE_LOOPS 1 /* zero-overhead loops */
57 #define XCHAL_LOOP_BUFFER_SIZE 256 /* zero-ov. loop instr buffer size */
68 #define XCHAL_HAVE_ABSOLUTE_LITERALS 0 /* non-PC-rel (extended) L32R */
[all …]
/sof-3.4.0/scripts/kconfig/
Dkconfiglib.py1 # SPDX-License-Identifier: ISC
2 # Copyright (c) 2011-2018, Ulf Magnusson
9 from Kconfig (https://www.kernel.org/doc/Documentation/kbuild/kconfig-language.txt)
22 $ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | git am
23 …$ wget -qO- https://raw.githubusercontent.com/ulfalizer/Kconfiglib/master/makefile.patch | patch -
25 Warning: Not passing -p1 to patch will cause the wrong file to be patched.
38 $ git am Kconfiglib/makefile.patch (or 'patch -p1 < Kconfiglib/makefile.patch')
48 ----------------
55 --------------------------------
75 ----------------------------------------------------
[all …]