Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Audio: ASRC: Optimize for HiFi5 impulse response calculations
This patch optimizes for HiFi5 the polynomials evaluations to calculate rate conversion FIR impulse responses. The functions asrc_calc_impulse_response_n[4-7]() calculate with Horner's method each coefficient of the FIR with 3th to 5th order polynomial. The header files with polynomials coefficients are re-ordered for for direct 128 bits int32x4 loads. The loop is modified to calculate four FIR coefficients per loop. Since there is no suitable quad-MAC instruction found, the previous dual-MAC is used twice. The saving is 11.6 MCPS, from 38.75 to 27.20 MCPS for 32 bits stereo 44.1 to 48 kHz conversion, push mode. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
- Loading branch information