Skip to content

Commit

Permalink
module_adapter: Remove modules_shim_new()
Browse files Browse the repository at this point in the history
This is dead code: just a wrapper around module_adapter_new(), which
is a public API already in use.  Presumably a forgotten relic.
Remove.

Signed-off-by: Andy Ross <andyross@google.com>
  • Loading branch information
andyross authored and kv2019i committed Jun 18, 2024
1 parent 6102aac commit 36fd9b5
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions src/audio/module_adapter/module/modules.c
Original file line number Diff line number Diff line change
Expand Up @@ -245,23 +245,3 @@ const struct module_interface processing_module_adapter_interface = {
.reset = modules_reset,
.free = modules_free,
};

/**
* \brief Create a module adapter component.
* \param[in] drv - component driver pointer.
* \param[in] config - component ipc descriptor pointer.
* \param[in] spec - pointer to module configuration data
*
* \return: a pointer to newly created module adapter component on success. NULL on error.
*
* \note: For dynamically loaded module the spec size is not known by base FW, since this is
* loaded module specific information. Therefore configuration size is required here.
* New module details are discovered during its loading, therefore comp_driver initialisation
* happens at this point.
*/
struct comp_dev *modules_shim_new(const struct comp_driver *drv,
const struct comp_ipc_config *config,
const void *spec)
{
return module_adapter_new(drv, config, spec);
}

0 comments on commit 36fd9b5

Please sign in to comment.