mirror of https://github.com/thesofproject/sof.git
Audio: EQ FIR: Remove duplicates of module_update_buffer_position()
This can be done once at eq_fir_process() to save code size. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
parent
58692116a5
commit
031fecb3f1
|
@ -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;
|
||||
}
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
|
@ -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 */
|
||||
|
||||
|
|
Loading…
Reference in New Issue