Audio: TDFB: Switch to fir_32x16_2x() function in generic C

This patch replaces the two calls for FIR filter with the dual
FIR function call.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2022-02-16 16:45:16 +02:00 committed by Liam Girdwood
parent 5eb7304f61
commit 5cf5e32a40
1 changed files with 3 additions and 2 deletions

View File

@ -40,8 +40,9 @@ static inline void tdfb_core(struct tdfb_comp_data *cd, int in_nch, int out_nch)
* two samples per call. The output is stored as Q5.27
* to fit max. 16 filters sum to a channel.
*/
y0 = fir_32x16(filter, cd->in[is]) >> 4;
y1 = fir_32x16(filter, cd->in[is2]) >> 4;
fir_32x16_2x(filter, cd->in[is], cd->in[is2], &y0, &y1);
y0 >>= 4;
y1 >>= 4;
for (k = 0; k < out_nch; k++) {
if (om & 1) {
cd->out[k] += y0;