Is your feature request related to a problem? Please describe.
lib_manager_module_create() is typically called from comp_new_ipc4(), it loads a dynamically loadable module driver, retrieves its module adapter interface pointer and assigns it to the newly created driver object. However, that driver object is available at that location only as a const pointer, so to perform the assignment lib_manager_module_create() has to cast away the const attribute. This isn't a good coding practice and can lead to failures in certain configurations.
Describe the solution you'd like
The flow should be adjusted to eliminate that type-cast.