Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Audio: MFCC: Fix mistake with HiFi4 circular buffer index #9415

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/audio/mfcc/mfcc_hifi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@ void mfcc_fill_fft_buffer(struct mfcc_state *state)
idx += state->prev_data_size;
in = (ae_int16 *)buf->r_ptr;
out = (ae_int16 *)&fft->fft_buf[idx].real;
set_circular_buf1(buf->addr, buf->end_addr);
set_circular_buf0(buf->addr, buf->end_addr);
for (j = 0; j < fft->fft_hop_size; j++) {
AE_L16_XC(sample, in, buf_inc);
AE_S16_0_XP(sample, out, fft_inc);
Expand Down Expand Up @@ -205,7 +205,7 @@ void mfcc_apply_window(struct mfcc_state *state, int input_shift)
AE_L16_XP(win, win_in, win_inc);
temp = AE_MULF16SS_00(sample, win);
temp = AE_SLAA32S(temp, input_shift);
sample = AE_ROUND16X4F32SASYM(temp, temp);
sample = AE_ROUND16X4F32SASYM(temp, temp);
AE_S16_0_XP(sample, fft_in, fft_inc);
}
#else
Expand Down