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 <karolx.trzcinski@linux.intel.com>
This commit is contained in:
Karol Trzcinski 2020-06-19 09:41:32 +02:00 committed by Marcin Maka
parent 5702b77200
commit e963c54f0d
1 changed files with 1 additions and 0 deletions

View File

@ -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