From e963c54f0de6247b72f406806c5865e9a97565d7 Mon Sep 17 00:00:00 2001 From: Karol Trzcinski Date: Fri, 19 Jun 2020 09:41:32 +0200 Subject: [PATCH] smart_amp: Set rate in feedback channel Each audio stream should have assigned valid data description, like channel number, data format and data rate. It's especially important for audio streams used to connect two arbitrary components together, because of them may need this information, what leads to unpredicted errors. Signed-off-by: Karol Trzcinski --- src/audio/smart_amp_test.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/audio/smart_amp_test.c b/src/audio/smart_amp_test.c index ec758c86e..331017a03 100644 --- a/src/audio/smart_amp_test.c +++ b/src/audio/smart_amp_test.c @@ -527,6 +527,7 @@ static int smart_amp_prepare(struct comp_dev *dev) sad->out_channels = sad->sink_buf->stream.channels; sad->feedback_buf->stream.channels = sad->config.feedback_channels; + sad->feedback_buf->stream.rate = sad->source_buf->stream.rate; /* TODO: * ATM feedback buffer frame_fmt is hardcoded to s32_le. It should be