Audio: Module adapter: Pass entire new() IPC to SRC

This patch differentiates SRC component from normal processing
component IPC. The corrected size allows the client component to
receive all of init() IPC.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2023-05-08 17:57:42 +03:00 committed by Kai Vehmanen
parent c605296636
commit 1240cf03ff
1 changed files with 8 additions and 0 deletions

View File

@ -89,6 +89,14 @@ struct comp_dev *module_adapter_new(const struct comp_driver *drv,
data = spec;
break;
}
case SOF_COMP_SRC:
{
const struct ipc_config_src *ipc_src = spec;
size = sizeof(*ipc_src);
data = spec;
break;
}
default:
{
const struct ipc_config_process *ipc_module_adapter = spec;