Home
last modified time | relevance | path

Searched refs:shift (Results 1 – 25 of 77) sorted by relevance

1234

/sof-3.4.0/tools/tune/eq/
Deq_fir_blob_quant.m4 % out shift, and coefficients to be used in the setup blob.
10 % fbr - vector with length, in shift, out shift, and quantized coefficients
30 [bq, shift] = eq_fir_quantize(b, bits);
66 fbr = [nnew shift 0 0 0 0 0 0 0 0 bqp];
70 function [bq, shift] = eq_fir_quantize(b, bits)
72 % [bq, shift] = eq_fir_quantize(b, bits)
80 % shift - shift right parameter to apply after FIR computation to
86 %% Output shift for coefficients
88 shift = -ceil(log(m+1/scale)/log(2)); variable
89 bsr = b*2^shift;
/sof-3.4.0/test/cmocka/src/math/auditory/
Dmfcc_power_to_mel_log.m9 % shift - apply 2^(2 * shift) gain to Mel spectra
18 function mel_log = mfcc_power_to_mel_log(state, param, s_half, shift)
25 % Compensate linear spectra shift to logarithmic Mel power spectra
26 mel_log(i) = (log(p) - 2 * shift * log(2)) * state.log_scale;
Dref_auditory.m22 opt.shift = 0;
35 opt.shift = 1;
48 opt.shift = 2;
61 opt.shift = 3;
110 mel_log = mfcc_power_to_mel_log(state, param, s_half, opt.shift);
124 export_ndefine(fh, [define_prefix 'SHIFT'], opt.shift);
/sof-3.4.0/src/audio/eq_fir/
Deq_fir_hifi3.c44 int shift; in eq_fir_2x_s32() local
54 shift = lshift - rshift; in eq_fir_2x_s32()
78 fir_32x16_2x_hifi3(f, d0, d1, y0, y1, shift); in eq_fir_2x_s32()
108 int shift; in eq_fir_2x_s24() local
117 shift = lshift - rshift; in eq_fir_2x_s24()
143 fir_32x16_2x_hifi3(f, d0, d1, &z0, &z1, shift); in eq_fir_2x_s24()
184 int shift; in eq_fir_2x_s16() local
193 shift = lshift - rshift; in eq_fir_2x_s16()
221 fir_32x16_2x_hifi3(f, x0, x1, &z0, &z1, shift); in eq_fir_2x_s16()
/sof-3.4.0/tools/topology/topology1/m4/
Denumcontrol.m41 dnl ENUM_CHANNEL(name, reg, shift)
5 ` shift STR($3)'
36 ` # channel register and shift for Front Left/Right'
53 ` # channel register and shift for Front Left/Right'
Dmixercontrol.m45 dnl KCONTROL_CHANNEL(name, reg, shift)
9 ` shift STR($3)'
Dtdfb_controls.m420 Channel register and shift for Front Center,
31 Channel register and shift for Front Center,
/sof-3.4.0/src/audio/tdfb/
Dtdfb_hifi3.c31 int shift; in tdfb_fir_s16() local
62 shift = -f->out_shift; in tdfb_fir_s16()
67 shift); in tdfb_fir_s16()
106 int shift; in tdfb_fir_s24() local
136 shift = -f->out_shift; in tdfb_fir_s24()
141 shift); in tdfb_fir_s24()
180 int shift; in tdfb_fir_s32() local
210 shift = -f->out_shift; in tdfb_fir_s32()
215 shift); in tdfb_fir_s32()
/sof-3.4.0/src/math/
Dfir_generic.c80 const int shift = 15 + fir->out_shift; in fir_32x16() local
114 return sat_int32(y >> shift); in fir_32x16()
131 const int shift = 15 + fir->out_shift; in fir_32x16_2x() local
179 *y0 = sat_int32(a0 >> shift); in fir_32x16_2x()
180 *y1 = sat_int32(a1 >> shift); in fir_32x16_2x()
Dfir_hifi3.c87 int shift) in fir_32x16_hifi3() argument
155 a = AE_SLAA64S(a, shift); in fir_32x16_hifi3()
165 ae_int32 *y0, ae_int32 *y1, int shift) in fir_32x16_2x_hifi3() argument
242 b = AE_SLAA64S(b, shift); in fir_32x16_2x_hifi3()
243 a = AE_SLAA64S(a, shift); in fir_32x16_2x_hifi3()
Diir_df1_hifi3.c54 ae_int32x2 shift; in iir_df1() local
88 AE_L32_IP(shift, (ae_int32 *)coefp, 4); in iir_df1()
116 acc = AE_SRAA64(acc, shift); in iir_df1()
Diir_df2t_hifi3.c64 int shift; in iir_df2t() local
118 shift = AE_SEL32_LL(coef_b0shift, coef_b0shift); in iir_df2t()
119 acc = AE_SRAA64(acc, shift); in iir_df2t()
/sof-3.4.0/src/audio/src/
Dsrc_hifi2ep.c27 const int taps_div_4, const int shift, in fir_filter() argument
104 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a0, shift)), wp, 0); in fir_filter()
105 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a1, shift)), wp, in fir_filter()
151 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a0, shift)), wp, 0); in fir_filter()
159 const int taps_div_4, const int shift, in fir_filter() argument
240 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a0, shift)), wp, 0); in fir_filter()
241 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a1, shift)), wp, in fir_filter()
291 AE_SQ32F_I(AE_ROUNDSQ32SYM(AE_SRAAQ56(a0, shift)), wp, 0); in fir_filter()
358 q = AE_SLLASQ56S(q, s->shift); in src_polyphase_stage_cir()
382 fir_filter(rp, cp, wp, taps_div_4, cfg->shift, nch); in src_polyphase_stage_cir()
[all …]
Dsrc_hifi3.c26 const int taps_div_4, const int shift, in fir_filter() argument
103 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
105 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a1, shift)), wp, in fir_filter()
158 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
166 const int taps_div_4, const int shift, in fir_filter() argument
243 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
245 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a1, shift)), wp, in fir_filter()
295 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
362 q = AE_SLAA32(q, s->shift); in src_polyphase_stage_cir()
386 fir_filter(rp, cp, wp, taps_div_4, cfg->shift, nch); in src_polyphase_stage_cir()
[all …]
Dsrc_hifi4.c32 const int taps_div_4, const int shift, in fir_filter() argument
109 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
111 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a1, shift)), wp, in fir_filter()
164 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
172 const int taps_div_4, const int shift, in fir_filter() argument
250 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
252 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a1, shift)), wp, in fir_filter()
302 AE_S32_L_XP(AE_ROUND32F48SSYM(AE_SRAA64(a0, shift)), wp, in fir_filter()
367 q = AE_SLAA32(q, s->shift); in src_polyphase_stage_cir()
391 fir_filter(rp, cp, wp, taps_div_4, cfg->shift, nch); in src_polyphase_stage_cir()
[all …]
Dsrc_generic.c25 const int shift, const int nch) in fir_filter_generic() argument
36 const int qshift = 15 + shift; /* Q2.46 -> Q2.31 */ in fir_filter_generic()
117 const int taps_x_nch, const int shift, in fir_filter_generic() argument
131 const int qshift = 23 + shift; /* Qx.54 -> Qx.31 */ in fir_filter_generic()
261 *fir->fir_wp = *x_rptr << s->shift; in src_polyphase_stage_cir()
277 taps_x_nch, cfg->shift, nch); in src_polyphase_stage_cir()
295 *y_wptr = *fir->out_rp >> s->shift; in src_polyphase_stage_cir()
375 taps_x_nch, cfg->shift, nch); in src_polyphase_stage_cir_s16()
/sof-3.4.0/test/cmocka/src/audio/volume/
Dvolume_process.c175 int shift = 8; in verify_s24_to_s24_s32() local
181 (double)VOL_ZERO_DB + 0.5 * (1 << shift); in verify_s24_to_s24_s32()
188 sample = ((int32_t)processed) >> shift; in verify_s24_to_s24_s32()
194 if (shift && (dst_sample < INT24_MIN || in verify_s24_to_s24_s32()
232 int shift = 0; in verify_s32_to_s24_s32() local
238 (double)VOL_ZERO_DB + 0.5 * (1 << shift); in verify_s32_to_s24_s32()
245 sample = ((int32_t)processed) >> shift; in verify_s32_to_s24_s32()
251 if (shift && (dst_sample < INT24_MIN || in verify_s32_to_s24_s32()
/sof-3.4.0/src/include/sof/math/
Dfir_hifi3.h61 int shift);
64 ae_int32 *y0, ae_int32 *y1, int shift);
/sof-3.4.0/tools/tune/multiband_drc/
Diir_gen_quant_coefs.m49 % [ a2 a1 b2 b1 b0 shift gain]
56 % [ a2 a1 b2 b1 b0 shift gain]
114 rshift--; % left-shift in shift stage
/sof-3.4.0/src/drivers/mediatek/afe/mt8186/
Dafe-sgen.c165 static void mtk_afe_reg_update_bits(uint32_t addr_offset, uint32_t mask, uint32_t val, int shift) in mtk_afe_reg_update_bits() argument
167 io_reg_update_bits(AFE_BASE_ADDR + addr_offset, mask << shift, val << shift); in mtk_afe_reg_update_bits()
/sof-3.4.0/src/drivers/mediatek/afe/mt8188/
Dafe-sgen.c172 static void mtk_afe_reg_update_bits(uint32_t addr_offset, uint32_t mask, uint32_t val, int shift) in mtk_afe_reg_update_bits() argument
174 io_reg_update_bits(AFE_BASE_ADDR + addr_offset, mask << shift, val << shift); in mtk_afe_reg_update_bits()
/sof-3.4.0/src/drivers/mediatek/afe/mt8195/
Dafe-sgen.c180 static void mtk_afe_reg_update_bits(uint32_t addr_offset, uint32_t mask, uint32_t val, int shift) in mtk_afe_reg_update_bits() argument
182 io_reg_update_bits(AFE_BASE_ADDR + addr_offset, mask << shift, val << shift); in mtk_afe_reg_update_bits()
/sof-3.4.0/src/include/sof/audio/coefficients/pdm_decim/
Dpdm_decim_fir.h18 int shift; member
/sof-3.4.0/tools/tune/dmic/
Ddmic_init.m68 [coef, shift] = get_fir(cfg.mfir_a, prm, cfg, hw, spec);
71 scale_fir_coef(coef, shift, spec.scale, cfg.remain_gain_to_fir, hw.bits_fir_coef);
81 [coef, shift] = get_fir(cfg.mfir_b, prm, cfg, hw, spec);
84 scale_fir_coef(coef, shift, spec.scale, cfg.remain_gain_to_fir, hw.bits_fir_coef);
110 function [coef32, shift] = get_fir(mfir, prm, cfg, hw, spec)
118 [ coef, shift, bw, sb, rs, got_pb, got_sb, passed] = ...
131 fir.shift = shift;
194 fprintf(1,'Warning: Limited CIC shift right from %d', cfg.cic_shift);
199 fprintf(1,'Error: Limited CIC shift right from %d', cfg.cic_shift);
/sof-3.4.0/src/include/sof/audio/src/
Dsrc.h40 const int shift; member
71 int shift; member

1234