Skip to content

Commit c232feb

Browse files
singalsukv2019i
authored andcommitted
Audio: MFCC: Fix mistake with HiFi4 circular buffer index
The instruction AE_L16_XC() uses circular buffer0, so the buffer setup instruction need to be changed. The proper instruction for buffer 1 would have been AE_L16_XC1(). Due to this error the MFCC output became incorrect after wrong circular buffer wrap. Fixes: 5c92bdd ("Audio: MFCC: Add HiFi4 implementation of MFCC") Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 39ace34 commit c232feb

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/mfcc/mfcc_hifi4.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ void mfcc_fill_fft_buffer(struct mfcc_state *state)
143143
idx += state->prev_data_size;
144144
in = (ae_int16 *)buf->r_ptr;
145145
out = (ae_int16 *)&fft->fft_buf[idx].real;
146-
set_circular_buf1(buf->addr, buf->end_addr);
146+
set_circular_buf0(buf->addr, buf->end_addr);
147147
for (j = 0; j < fft->fft_hop_size; j++) {
148148
AE_L16_XC(sample, in, buf_inc);
149149
AE_S16_0_XP(sample, out, fft_inc);

0 commit comments

Comments
 (0)