Skip to content

Commit

Permalink
Audio: MFCC: Fix compilation error
Browse files Browse the repository at this point in the history
/home/bamboo/sof_dir/sof/src/audio/mfcc/mfcc_hifi4.c: In function
‘mfcc_source_copy_s16’:
/home/bamboo/sof_dir/sof/src/audio/mfcc/mfcc_hifi4.c:86: warning:
assignment from incompatible pointer type
/home/bamboo/sof_dir/sof/src/audio/mfcc/mfcc_hifi4.c: In function
‘mfcc_fill_prev_samples’:
/home/bamboo/sof_dir/sof/src/audio/mfcc/mfcc_hifi4.c:119: warning:
assignment from incompatible pointer type

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
  • Loading branch information
dbaluta committed Aug 29, 2023
1 parent c0fd911 commit 4d2e9b1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/audio/mfcc/mfcc_hifi4.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ void mfcc_source_copy_s16(struct input_stream_buffer *bsource, struct mfcc_buffe

buf->s_avail += frames;
buf->s_free -= frames;
buf->w_ptr = out;
buf->w_ptr = (int16_t *)out;
}

void mfcc_fill_prev_samples(struct mfcc_buffer *buf, int16_t *prev_data,
Expand Down Expand Up @@ -116,7 +116,7 @@ void mfcc_fill_prev_samples(struct mfcc_buffer *buf, int16_t *prev_data,

buf->s_avail -= prev_data_length;
buf->s_free += prev_data_length;
buf->r_ptr = in;
buf->r_ptr = (int16_t *)in;
}

void mfcc_fill_fft_buffer(struct mfcc_state *state)
Expand Down

0 comments on commit 4d2e9b1

Please sign in to comment.