diff --git a/src/audio/eq_fir/eq_fir.c b/src/audio/eq_fir/eq_fir.c index b7a967266..a9bff7430 100644 --- a/src/audio/eq_fir/eq_fir.c +++ b/src/audio/eq_fir/eq_fir.c @@ -148,7 +148,6 @@ static void eq_fir_passthrough(struct fir_state_32x16 fir[], struct audio_stream __sparse_cache *sink = bsink->data; audio_stream_copy(source, 0, sink, 0, frames * source->channels); - module_update_buffer_position(bsource, bsink, frames); } static void eq_fir_free_delaylines(struct comp_data *cd) @@ -445,8 +444,10 @@ static int eq_fir_process(struct processing_module *mod, */ frame_count &= ~0x1; - if (frame_count) + if (frame_count) { cd->eq_fir_func(cd->fir, &input_buffers[0], &output_buffers[0], frame_count); + module_update_buffer_position(&input_buffers[0], &output_buffers[0], frame_count); + } return 0; } diff --git a/src/audio/eq_fir/eq_fir_generic.c b/src/audio/eq_fir/eq_fir_generic.c index 4a30521ff..29655cb20 100644 --- a/src/audio/eq_fir/eq_fir_generic.c +++ b/src/audio/eq_fir/eq_fir_generic.c @@ -54,8 +54,6 @@ void eq_fir_s16(struct fir_state_32x16 fir[], struct input_stream_buffer *bsourc x = audio_stream_wrap(source, x + n); y = audio_stream_wrap(sink, y + n); } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S16LE */ @@ -94,8 +92,6 @@ void eq_fir_s24(struct fir_state_32x16 fir[], struct input_stream_buffer *bsourc x = audio_stream_wrap(source, x + n); y = audio_stream_wrap(sink, y + n); } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S24LE */ @@ -132,8 +128,6 @@ void eq_fir_s32(struct fir_state_32x16 fir[], struct input_stream_buffer *bsourc x = audio_stream_wrap(source, x + n); y = audio_stream_wrap(sink, y + n); } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S32LE */ diff --git a/src/audio/eq_fir/eq_fir_hifi2ep.c b/src/audio/eq_fir/eq_fir_hifi2ep.c index 286ddeb19..0301f3c0d 100644 --- a/src/audio/eq_fir/eq_fir_hifi2ep.c +++ b/src/audio/eq_fir/eq_fir_hifi2ep.c @@ -65,8 +65,6 @@ void eq_fir_2x_s32(struct fir_state_32x16 fir[], struct input_stream_buffer *bso y0 += inc; } } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S32LE */ @@ -115,8 +113,6 @@ void eq_fir_2x_s24(struct fir_state_32x16 fir[], struct input_stream_buffer *bso y0 += inc; } } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S24LE */ @@ -165,8 +161,6 @@ void eq_fir_2x_s16(struct fir_state_32x16 fir[], struct input_stream_buffer *bso y0 += inc; } } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S16LE */ diff --git a/src/audio/eq_fir/eq_fir_hifi3.c b/src/audio/eq_fir/eq_fir_hifi3.c index 1061fbb06..94d0a8c0a 100644 --- a/src/audio/eq_fir/eq_fir_hifi3.c +++ b/src/audio/eq_fir/eq_fir_hifi3.c @@ -83,8 +83,6 @@ void eq_fir_2x_s32(struct fir_state_32x16 fir[], struct input_stream_buffer *bso AE_L32_XC(d1, y1, inc_2nch_s); } } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S32LE */ @@ -232,8 +230,6 @@ void eq_fir_2x_s16(struct fir_state_32x16 fir[], struct input_stream_buffer *bso AE_S16_0_XC(d1, y, inc_nch_s); } } - - module_update_buffer_position(bsource, bsink, frames); } #endif /* CONFIG_FORMAT_S16LE */