diff --git a/src/include/sof/ipc/topology.h b/src/include/sof/ipc/topology.h index 825898a09..5f851005f 100644 --- a/src/include/sof/ipc/topology.h +++ b/src/include/sof/ipc/topology.h @@ -47,7 +47,7 @@ typedef uint32_t ipc_comp; #define ipc_from_pipe_connect(x) ((struct ipc4_module_bind_unbind *)x) struct ipc_comp_dev; -const struct comp_driver *ipc4_get_comp_drv(int module_id); +const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id); struct comp_dev *ipc4_get_comp_dev(uint32_t comp_id); int ipc4_add_comp_dev(struct comp_dev *dev); const struct comp_driver *ipc4_get_drv(const uint8_t *uuid); diff --git a/src/ipc/ipc4/helper.c b/src/ipc/ipc4/helper.c index 666df9bde..4fa3821d9 100644 --- a/src/ipc/ipc4/helper.c +++ b/src/ipc/ipc4/helper.c @@ -945,12 +945,12 @@ static const struct comp_driver *ipc4_library_get_drv(int module_id) } #endif -const struct comp_driver *ipc4_get_comp_drv(int module_id) +const struct comp_driver *ipc4_get_comp_drv(uint32_t module_id) { struct sof_man_fw_desc *desc = NULL; const struct comp_driver *drv; struct sof_man_module *mod; - int entry_index; + uint32_t entry_index; #if CONFIG_LIBRARY return ipc4_library_get_drv(module_id);