mirror of https://github.com/thesofproject/sof.git
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:
parent
5702b77200
commit
e963c54f0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue