codec_adapter: Remove assert after memcpy_s

Remove assert and report the error condition to the upper layers.
It does not make sense to stop the FW if config parameters fails.

Signed-off-by: Daniel Baluta <daniel.baluta@nxp.com>
This commit is contained in:
Daniel Baluta 2022-03-24 12:25:40 +02:00 committed by Liam Girdwood
parent 28582f6566
commit 73813a2f1f
1 changed files with 2 additions and 1 deletions

View File

@ -308,7 +308,8 @@ int codec_adapter_params(struct comp_dev *dev,
ret = memcpy_s(&mod->stream_params, sizeof(struct sof_ipc_stream_params),
params, sizeof(struct sof_ipc_stream_params));
assert(!ret);
if (ret < 0)
return ret;
mod->period_bytes = params->sample_container_bytes *
params->channels * params->rate / 1000;