smart_amp: copy ipc config

It appears in the conversion of the IPC API the copy in the smart amp
code was missed and as a result the component loses its ID which results
in the graph being broken and a crash on trigger.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2022-02-16 19:18:58 -08:00 committed by Liam Girdwood
parent bb314fca61
commit 949d1f4d69
1 changed files with 2 additions and 0 deletions

View File

@ -226,6 +226,8 @@ static struct comp_dev *smart_amp_new(const struct comp_driver *drv,
if (!dev)
return NULL;
dev->ipc_config = *config;
sad = rzalloc(SOF_MEM_ZONE_RUNTIME, 0, SOF_MEM_CAPS_RAM, sizeof(*sad));
if (!sad) {
rfree(dev);