This reverts commit 65e5aaa031ff27dc1de2feae4cc04f03d013d5c2.
Reason: this commit should be merged along with the corresponding fix
on DTS.
Signed-off-by: Pin-chih Lin <email address hidden>
f60f53d...
by
Balakishorepati <email address hidden>
module_adapter:Fix dangling pointer issue in module reset
During module_reset and module_free Calls, pointers are not
getting reset to NULL which causes dangling pointer exceptions.
Initialize pointers to NULL after deallocating the memory.
Signed-off-by: Balakishorepati <email address hidden>
(cherry picked from commit 3f03b75c3a1b00c57b2c1d4124c22a70ed3cbb9d)
65e5aaa...
by
Ranjani Sridharan <email address hidden>
module_adapter: Modify reset API
Modify the definition of the reset API in the module adapter interface
to make sure that it should reset the module state back to
MODULE_INITIALIZED and free all memory that was allocated during the
prepare() callback. With this change, stopping and restarting streams
will always be guaranteed to invoke the module's prepare() callback.
Also, fix the passthrough and cadence codec implementation to follow the
new definition.