From e2265794f6c29ae822ba03c89d38b7b29c60ae14 Mon Sep 17 00:00:00 2001 From: Seppo Ingalsuo Date: Thu, 19 Jan 2023 19:52:13 +0200 Subject: [PATCH] Audio: EQ FIR: Change frame align to 2 The FIR processing cores are computing multiple of two frames sizes so the align constraint can be set to prevent EQ process to be called with odd frame counts. Signed-off-by: Seppo Ingalsuo --- src/audio/eq_fir/eq_fir.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/audio/eq_fir/eq_fir.c b/src/audio/eq_fir/eq_fir.c index a9bff7430..21f7afca7 100644 --- a/src/audio/eq_fir/eq_fir.c +++ b/src/audio/eq_fir/eq_fir.c @@ -456,7 +456,7 @@ static void eq_fir_set_alignment(struct audio_stream __sparse_cache *source, struct audio_stream __sparse_cache *sink) { const uint32_t byte_align = 1; - const uint32_t frame_align_req = 1; + const uint32_t frame_align_req = 2; /* Process multiples of 2 frames */ audio_stream_init_alignment_constants(byte_align, frame_align_req, source); audio_stream_init_alignment_constants(byte_align, frame_align_req, sink);