smart amp:removed hardcoded frame_fmt value

frame_fmt for feedback was hardcoded to S32_LE format.
This workarround code is no longer needed.

Signed-off-by: Ryan Lee <ryans.lee@maximintegrated.com>
This commit is contained in:
Ryan Lee 2020-09-23 11:12:10 -07:00 committed by Liam Girdwood
parent 95ee7a8df4
commit 75dfdb53dd
1 changed files with 0 additions and 9 deletions

View File

@ -692,15 +692,6 @@ static int smart_amp_prepare(struct comp_dev *dev)
return -EINVAL; return -EINVAL;
} }
/* TODO:
* ATM feedback buffer frame_fmt is hardcoded to s32_le. It should be
* removed when parameters negotiation between pipelines will prepared
*/
if (sad->feedback_buf->stream.frame_fmt != SOF_IPC_FRAME_S32_LE) {
sad->feedback_buf->stream.frame_fmt = SOF_IPC_FRAME_S32_LE;
comp_err(dev, "smart_amp_prepare(): S32_LE format is hardcoded as workaround");
}
sad->process = get_smart_amp_process(dev); sad->process = get_smart_amp_process(dev);
if (!sad->process) { if (!sad->process) {
comp_err(dev, "smart_amp_prepare(): get_smart_amp_process failed"); comp_err(dev, "smart_amp_prepare(): get_smart_amp_process failed");