mirror of https://github.com/thesofproject/sof.git
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:
parent
28582f6566
commit
73813a2f1f
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue