Skip to content

Commit df460c8

Browse files
singalsucujomalainey
authored andcommitted
Audio: Crossover: Fix a mistake in s32 processing core
The filters state need to be retrieved for every channel as it is done in other s16 and s24 processing cores. The mistake caused very distorted sound with waveform discontinuity every copy period, e.g. 1 ms. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
1 parent 5bcbcf1 commit df460c8

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/audio/crossover/crossover_generic.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@ static void crossover_s32_default(struct comp_data *cd,
229229

230230
for (ch = 0; ch < nch; ch++) {
231231
idx = ch;
232-
state = &cd->state[0];
232+
state = &cd->state[ch];
233233
for (i = 0; i < frames; i++) {
234234
x = audio_stream_read_frag_s32(source_stream, idx);
235235
cd->crossover_split(*x, out, state);

0 commit comments

Comments
 (0)