Home
last modified time | relevance | path

Searched +full:- +full:x (Results 1 – 25 of 423) sorted by relevance

12345678910>>...17

/sof-3.4.0/src/include/sof/drivers/
Ddmic.h1 /* SPDX-License-Identifier: BSD-3-Clause
52 #include <ipc/dai-intel.h>
68 #define DMIC_HW_CIC_SHIFT_MIN -8
141 #define OUTCONTROL0_TIE(x) SET_BIT(27, x) argument
142 #define OUTCONTROL0_SIP(x) SET_BIT(26, x) argument
143 #define OUTCONTROL0_FINIT(x) SET_BIT(25, x) argument
144 #define OUTCONTROL0_FCI(x) SET_BIT(24, x) argument
145 #define OUTCONTROL0_BFTH(x) SET_BITS(23, 20, x) argument
146 #define OUTCONTROL0_OF(x) SET_BITS(19, 18, x) argument
147 #define OUTCONTROL0_IPM(x) SET_BITS(17, 16, x) argument
[all …]
Dssp.h1 /* SPDX-License-Identifier: BSD-3-Clause
17 #include <ipc/dai-intel.h>
45 #define SSCR0_DSIZE(x) SET_BITS(3, 0, (x) - 1) argument
46 #define SSCR0_DSIZE_GET(x) (((x) & MASK(3, 0)) + 1) argument
55 #define SSCR0_SCR(x) SET_BITS(19, 8, x) argument
60 #define SSCR0_FRDC(x) SET_BITS(26, 24, (x) - 1) argument
61 #define SSCR0_FRDC_GET(x) ((((x) & MASK(26, 24)) >> 24) + 1) argument
73 #define SSCR1_TFT(x) SET_BITS(9, 6, (x) - 1) argument
75 #define SSCR1_RFT(x) SET_BITS(13, 10, (x) - 1) argument
115 #define SSPSP_SCMODE(x) SET_BITS(1, 0, x) argument
[all …]
Dmu.h1 /* SPDX-License-Identifier: BSD-3-Clause
44 #define IMX_MU_xTRn(x) (0x200 + 4 * (x)) argument
46 #define IMX_MU_xRRn(x) (0x280 + 4 * (x)) argument
50 #define IMX_MU_xTRn(x) (0x00 + 4 * (x)) argument
52 #define IMX_MU_xRRn(x) (0x10 + 4 * (x)) argument
57 #define IMX_MU_xSR_GIPn(type, x) (type == IMX_MU_V2 ? BIT(x) : BIT(28 + (3 - (x)))) argument
58 #define IMX_MU_xSR_RFn(type, x) (type == IMX_MU_V2 ? BIT(x) : BIT(24 + (3 - (x)))) argument
59 #define IMX_MU_xSR_TEn(type, x) (type == IMX_MU_V2 ? BIT(x) : BIT(20 + (3 - (x)))) argument
65 #define IMX_MU_xCR_GIEn(type, x) (type == IMX_MU_V2 ? BIT(x) : BIT(28 + (3 - (x)))) argument
67 #define IMX_MU_xCR_RIEn(type, x) (type == IMX_MU_V2 ? BIT(x) : BIT(24 + (3 - (x)))) argument
[all …]
Ddw-dma.h1 /* SPDX-License-Identifier: BSD-3-Clause
12 #include <platform/drivers/dw-dma.h>
65 #define DW_CHAN_WRITE_EN_ALL MASK(2 * DW_MAX_CHAN - 1, DW_MAX_CHAN)
67 #define DW_CHAN_ALL MASK(DW_MAX_CHAN - 1, 0)
84 #define DW_CTLL_SMS(x) SET_BIT(25, x) argument
85 #define DW_CTLL_DMS(x) SET_BIT(23, x) argument
92 #define DW_CTLL_SRC_MSIZE(x) SET_BITS(16, 14, x) argument
93 #define DW_CTLL_DST_MSIZE(x) SET_BITS(13, 11, x) argument
100 #define DW_CTLL_SRC_WIDTH(x) SET_BITS(6, 4, x) argument
101 #define DW_CTLL_DST_WIDTH(x) SET_BITS(3, 1, x) argument
[all …]
/sof-3.4.0/src/audio/drc/
Ddrc_math_generic.c1 // 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()
29 return Q_SHIFT_RND(x, bit, 30); in rexp_fixed()
31 return Q_SHIFT_LEFT(x, bit, 30); in rexp_fixed()
32 return x; in rexp_fixed()
37 * Output range ~ (-inf, 1.505); regulated to Q6.26: (-32.0, 32.0)
39 static inline int32_t log10_fixed(int32_t x) in log10_fixed() argument
[all …]
Ddrc_hifi3.c1 // SPDX-License-Identifier: BSD-3-Clause
5 // Author: Pin-chih Lin <johnylin@google.com>
28 * given the input level x.
30 static int32_t knee_curveK(const struct sof_drc_params *p, int32_t x) in knee_curveK() argument
37 * (1 - expf(-k * (x - linear_threshold))) / k in knee_curveK()
40 * beta = -expf(k * linear_threshold) / k in knee_curveK()
41 * gamma = -k * x in knee_curveK()
43 gamma = drc_mult_lshift(x, -p->K, drc_get_lshift(31, 20, 27)); in knee_curveK()
45 knee_curve_k = drc_mult_lshift(p->knee_beta, knee_exp_gamma, drc_get_lshift(24, 20, 24)); in knee_curveK()
46 knee_curve_k = AE_ADD32(knee_curve_k, p->knee_alpha); in knee_curveK()
[all …]
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 */
26 * given the input level x. */
27 static int32_t knee_curveK(const struct sof_drc_params *p, int32_t x) in knee_curveK() argument
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()
[all …]
Ddrc_math_hifi3.c1 // 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 …]
/sof-3.4.0/src/include/sof/audio/
Dformat_generic.h1 /* SPDX-License-Identifier: BSD-3-Clause
13 static inline int32_t sat_int32(int64_t x) in sat_int32() argument
15 if (x > INT32_MAX) in sat_int32()
17 else if (x < INT32_MIN) in sat_int32()
20 return (int32_t)x; in sat_int32()
23 static inline int32_t sat_int24(int32_t x) in sat_int24() argument
25 if (x > INT24_MAXVALUE) in sat_int24()
27 else if (x < INT24_MINVALUE) in sat_int24()
30 return x; in sat_int24()
33 static inline int16_t sat_int16(int32_t x) in sat_int16() argument
[all …]
Dformat.h1 /* SPDX-License-Identifier: BSD-3-Clause
14 #include <xtensa/config/core-isa.h>
34 #define INT24_MINVALUE -8388608
39 #define MINUS_3DB_Q1_31 1520301996 /* 10^(-3/20) */
40 #define MINUS_6DB_Q1_31 1076291389 /* 10^(-6/20) */
41 #define MINUS_10DB_Q1_31 679093957 /* 10^(-10/20) */
42 #define MINUS_20DB_Q1_31 214748365 /* 10^(-20/20) */
43 #define MINUS_30DB_Q1_31 67909396 /* 10^(-30/20) */
44 #define MINUS_40DB_Q1_31 21474836 /* 10^(-40/20) */
45 #define MINUS_50DB_Q1_31 6790940 /* 10^(-50/20) */
[all …]
/sof-3.4.0/src/platform/intel/cavs/include/cavs/drivers/
Dmn.h1 /* SPDX-License-Identifier: BSD-3-Clause
19 #define MN_MDIVCTRL_M_DIV_ENABLE(x) BIT(x) argument
21 /** \brief Offset of MCLK Divider x Ratio Register. */
22 #define MN_MDIVR(x) (0x80 + (x) * 0x4) argument
25 #define MCDSS(x) SET_BITS(17, 16, x) argument
27 /** \brief Offset of BCLK x M/N Divider M Value Register. */
28 #define MN_MDIV_M_VAL(x) (0x100 + (x) * 0x8 + 0x0) argument
30 /** \brief Offset of BCLK x M/N Divider N Value Register. */
31 #define MN_MDIV_N_VAL(x) (0x100 + (x) * 0x8 + 0x4) argument
34 #define MNDSS(x) SET_BITS(21, 20, x) argument
Ddw-dma.h1 /* SPDX-License-Identifier: BSD-3-Clause
19 /* number of supported DW-DMACs */
22 /* index of the first DW-DMAC in the array */
29 #define DW_CTLH_CLASS(x) SET_BITS(31, 29, x) argument
30 #define DW_CTLH_WEIGHT(x) SET_BITS(28, 18, x) argument
31 #define DW_CTLH_DONE(x) SET_BIT(17, x) argument
40 #define DW_CFGH_DST_PER_EXT(x) SET_BITS(31, 30, x) argument
41 #define DW_CFGH_SRC_PER_EXT(x) SET_BITS(29, 28, x) argument
42 #define DW_CFGH_DST_PER(x) SET_BITS(7, 4, x) argument
43 #define DW_CFGH_SRC_PER(x) SET_BITS(3, 0, x) argument
[all …]
/sof-3.4.0/src/platform/tigerlake/include/platform/lib/
Dshim.h1 /* SPDX-License-Identifier: BSD-3-Clause
15 #include <cavs/drivers/sideband-ipc.h>
32 #define IPC_IDCTFC(x) (0x0 + x * IPC_DSP_OFFSET) argument
33 #define IPC_IDCTEFC(x) (0x4 + x * IPC_DSP_OFFSET) argument
34 #define IPC_IDCITC(x) (0x8 + x * IPC_DSP_OFFSET) argument
35 #define IPC_IDCIETC(x) (0xc + x * IPC_DSP_OFFSET) argument
54 #define IPC_IDCCTL_IDCIDIE(x) (0x100 << (x)) argument
55 #define IPC_IDCCTL_IDCTBIE(x) BIT(x) argument
128 #define SHIM_CLKCTL_TCPLCG_EN(x) BIT(16 + (x)) argument
129 #define SHIM_CLKCTL_TCPLCG_DIS(x) 0 argument
[all …]
/sof-3.4.0/tools/tune/tdfb/
Dbf_array_rot.m4 % bf.array_angle ... three element vector for x, y, z rotation [degrees]
5 % bf.mic_x ......... x coordinates of microphones in [m]
14 % SPDX-License-Identifier: BSD-3-Clause
25 % Rotate around X-axis
27 % | x' | | 1 0 0 | | x |
28 % | y' | = | 0 cosa -sina | | y |
33 bf.mic_y = cos(a) * y - sin(a) * z;
36 % Rotate around Y-axis
38 % | x' | | cosa 0 sina | | x |
40 % | z' | | -sina 0 cosa | | z |
[all …]
/sof-3.4.0/tools/tune/drc/
Ddrc_gen_coefs.m23 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
51 % where the y values match the evenly spaced x values as follows:
52 % (y1 : x == 0, y2 : x == 1, y3 : x == 2, y4 : x == 3)
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) ...
[all …]
/sof-3.4.0/smex/
Delf.c1 /* SPDX-License-Identifier: BSD-3-Clause
19 Elf32_Ehdr *hdr = &module->hdr; in elf_read_sections()
20 Elf32_Shdr *section = module->section; in elf_read_sections()
26 ret = fseek(module->fd, hdr->shoff, SEEK_SET); in elf_read_sections()
29 module->elf_file, ret); in elf_read_sections()
34 section = calloc(sizeof(Elf32_Shdr), hdr->shnum); in elf_read_sections()
36 return -ENOMEM; in elf_read_sections()
37 module->section = section; in elf_read_sections()
40 count = fread(section, sizeof(Elf32_Shdr), hdr->shnum, module->fd); in elf_read_sections()
41 if (count != hdr->shnum) { in elf_read_sections()
[all …]
/sof-3.4.0/xtos/include/rtos/
Didc.h1 /* SPDX-License-Identifier: BSD-3-Clause
28 /** \brief IDC send non-blocking flag. */
49 #define IDC_TYPE(x) (((x) & IDC_TYPE_MASK) << IDC_TYPE_SHIFT) argument
53 #define IDC_HEADER(x) ((x) & IDC_HEADER_MASK) argument
57 #define IDC_EXTENSION(x) ((x) & IDC_EXTENSION_MASK) argument
78 #define IDC_MSG_PARAMS_EXT(x) IDC_EXTENSION(x) argument
82 #define IDC_MSG_PREPARE_EXT(x) IDC_EXTENSION(x) argument
86 #define IDC_MSG_TRIGGER_EXT(x) IDC_EXTENSION(x) argument
90 #define IDC_MSG_RESET_EXT(x) IDC_EXTENSION(x) argument
98 #define IDC_MSG_SECONDARY_CORE_CRASHED_EXT(x) IDC_EXTENSION(x) argument
[all …]
/sof-3.4.0/zephyr/include/rtos/
Didc.h1 /* SPDX-License-Identifier: BSD-3-Clause
27 /** \brief IDC send non-blocking flag. */
48 #define IDC_TYPE(x) (((x) & IDC_TYPE_MASK) << IDC_TYPE_SHIFT) argument
52 #define IDC_HEADER(x) ((x) & IDC_HEADER_MASK) argument
56 #define IDC_EXTENSION(x) ((x) & IDC_EXTENSION_MASK) argument
77 #define IDC_MSG_PARAMS_EXT(x) IDC_EXTENSION(x) argument
81 #define IDC_MSG_PREPARE_EXT(x) IDC_EXTENSION(x) argument
85 #define IDC_MSG_TRIGGER_EXT(x) IDC_EXTENSION(x) argument
89 #define IDC_MSG_RESET_EXT(x) IDC_EXTENSION(x) argument
97 #define IDC_MSG_SECONDARY_CORE_CRASHED_EXT(x) IDC_EXTENSION(x) argument
[all …]
/sof-3.4.0/src/include/sof/trace/
Dpreproc.h1 /* SPDX-License-Identifier: BSD-3-Clause
19 #include <sof/trace/preproc-private.h>
22 /* count number of var args - during preprocesing
33 /* treat x as string while forcing x expansion beforehand */
34 #define META_QUOTE(x) _META_QUOTE(x) argument
36 /* concat x and y while forcing x and y expansion beforehand */
37 #define META_CONCAT(x, y) _META_CONCAT_BASE(x, y) argument
39 /* discard first x-1 args in vararg and return the xth arg */
48 * notice, that any x!=0 would also result in 0
49 * e.x. META_NOT(123) evaluates to 0
[all …]
/sof-3.4.0/src/audio/smart_amp/
Dsmart_amp_generic.c1 // SPDX-License-Identifier: BSD-3-Clause
14 static int32_t smart_amp_ff_generic(int32_t x) in smart_amp_ff_generic() argument
17 return x; in smart_amp_ff_generic()
20 static void smart_amp_fb_generic(int32_t x) in smart_amp_fb_generic() argument
32 int16_t *x; in smart_amp_s16_ff_default() local
38 int nch = source->channels; in smart_amp_s16_ff_default()
43 x = audio_stream_read_frag_s16(source, idx); in smart_amp_s16_ff_default()
45 tmp = smart_amp_ff_generic(*x << 16); in smart_amp_s16_ff_default()
60 int32_t *x; in smart_amp_s24_ff_default() local
66 int nch = source->channels; in smart_amp_s24_ff_default()
[all …]
/sof-3.4.0/src/platform/tigerlake/include/platform/drivers/
Dtimestamp.h1 /* SPDX-License-Identifier: BSD-3-Clause
25 #define TS_I2S_LOCAL_TSCTRL(x) (0x100 + 0x20 * (x) + 0x00) argument
26 #define TS_I2S_LOCAL_OFFS(x) (0x100 + 0x20 * (x) + 0x04) argument
27 #define TS_I2S_LOCAL_SAMPLE(x) (0x100 + 0x20 * (x) + 0x08) argument
28 #define TS_I2S_LOCAL_WALCLK(x) (0x100 + 0x20 * (x) + 0x10) argument
29 #define TS_I2S_TSCC(x) (0x100 + 0x20 * (x) + 0x18) argument
Dinterrupt.h1 /* SPDX-License-Identifier: BSD-3-Clause
25 /* IRQ numbers - wrt Tensilica DSP */
48 #define IRQ_BIT_LVL2_HP_GP_DMA0(x) (x + 24) argument
85 #define IRQ_BIT_LVL3_HOST_STREAM_OUT(x) (16 + x) argument
86 #define IRQ_BIT_LVL3_HOST_STREAM_IN(x) (0 + x) argument
107 #define IRQ_BIT_LVL4_LINK_STREAM_OUT(x) (16 + x) argument
108 #define IRQ_BIT_LVL4_LINK_STREAM_IN(x) (0 + x) argument
131 #define IRQ_BIT_LVL5_DMIC(x) 8 argument
132 #define IRQ_BIT_LVL5_SSP(x) (0 + x) argument
137 #define IRQ_EXT_SSPx_LVL5(x) IRQ_BIT_LVL5_SSP(x) argument
[all …]
/sof-3.4.0/src/audio/tdfb/
Dtdfb_generic.c1 // SPDX-License-Identifier: BSD-3-Clause
27 const int num_filters = cd->config->num_filters; in tdfb_core()
30 memset(cd->out, 0, 2 * out_nch * sizeof(int32_t)); in tdfb_core()
34 is = cd->input_channel_select[i]; in tdfb_core()
36 om = cd->output_channel_mix[i]; in tdfb_core()
37 filter = &cd->fir[i]; in tdfb_core()
43 fir_32x16_2x(filter, cd->in[is], cd->in[is2], &y0, &y1); in tdfb_core()
48 cd->out[k] += y0; in tdfb_core()
49 cd->out[k + out_nch] += y1; in tdfb_core()
61 struct audio_stream __sparse_cache *source = bsource->data; in tdfb_fir_s16()
[all …]
Dtdfb_hifiep.c1 // SPDX-License-Identifier: BSD-3-Clause
30 const int num_filters = cd->config->num_filters; in tdfb_core()
33 memset(cd->out, 0, 2 * out_nch * sizeof(int32_t)); in tdfb_core()
37 is = cd->input_channel_select[i]; in tdfb_core()
39 om = cd->output_channel_mix[i]; in tdfb_core()
41 f = &cd->fir[i]; in tdfb_core()
45 fir_32x16_2x_hifiep(f, cd->in[is], cd->in[is2], &y0, &y1, lshift, rshift); in tdfb_core()
49 cd->out[k] += y0 >> 4; in tdfb_core()
50 cd->out[k + out_nch] += y1 >> 4; in tdfb_core()
61 struct audio_stream __sparse_cache *source = bsource->data; in tdfb_fir_s16()
[all …]
/sof-3.4.0/src/audio/dcblock/
Ddcblock_generic.c1 // SPDX-License-Identifier: BSD-3-Clause
22 int64_t R, int32_t x) in dcblock_generic() argument
28 int64_t out = ((int64_t)x) - state->x_prev + in dcblock_generic()
29 Q_SHIFT_RND(R * state->y_prev, 61, 31); in dcblock_generic()
31 state->y_prev = sat_int32(out); in dcblock_generic()
32 state->x_prev = x; in dcblock_generic()
34 return state->y_prev; in dcblock_generic()
45 int16_t *x = source->r_ptr; in dcblock_s16_default() local
46 int16_t *y = sink->w_ptr; in dcblock_s16_default()
52 int nch = source->channels; in dcblock_s16_default()
[all …]

12345678910>>...17