Since module-specific prepare API will be called every time on prepare
of module_adapter (stream start trigger), the reset API should
free all memory that was allocated during the prepare API.
Signed-off-by: barry.jan <email address hidden>
(cherry picked from commit 6275d18ce2a58e85a5f77bcbdf133fcdc6722216)
module_adapter:dts: support module life cycle change
1. Add a free memory function to support PR#6230 and PR#6331,
the latest prepare/reset API flow update of module_adapter.
2. This requires DTS library v1.0.7 to support this change.
Signed-off-by: Joe.Cheng <email address hidden>
(cherry picked from commit a26f83c52f837f634533d72ee73920ffcd2497b0)
d10d824...
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 53b3bc6a956ae5957966336f88980438f1f85a88)
42a0a3a...
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.
217111f...
by
Serhiy Katsyuba <email address hidden>
Fix performance counter regression
A regression bug was introduced by gh-5393 pull request.
As a source of high precision CPU timestamp (aka "system" timer)
this fix uses arch_timing_counter_get() for builds with Zephyr and
timer_get_system(cpu_timer_get()) for SOF only builds.
Note: arch_timing_counter_get() might not be implemented for your
Zephyr platform. In this case k_cycle_get_64() is used instead.
This will result in both "platform" and "cpu" timestamps to be equal.
topology: fix DMICPROC undefined issue for intel-generic-dmic
Adds fatal assertion in intel-generic-dmic.m4 for DMICPROC is not
defined in upper m4, and fixes a potential risk of assertion by
sof-tgl-max98357a-rt5682.m4.
Signed-off-by: Pin-chih Lin <email address hidden>
(cherry picked from commit ff7861f2229d3c9f4fe7b5eb7631a1139c14c24b)
memory: intel: increase task stack size for specific modules
Larger stack context stack size is required for RTNR and
GOOGLE_RTC_AUDIO integration on Intel platforms.
Signed-off-by: Pin-chih Lin <email address hidden>
(cherry picked from commit e9dfeab7af7c788009f4cb1658120e388a2799bb)
e0b955a...
by
=?utf-8?q?Per_=C3=85hgren?= <email address hidden>
Updating of GoogleRtcAudioProcessing component to provide a more general behavior
Changes in the GoogleRtcAudioProcessing component to
--Allow sample rate and number of channels to explicitly be specified.
--Update the memory management.
--Allow parameters to be passed.
--Allow more than mono to be processed
--Allow parameters to be specified from Kconfig
Signed-off-by: Per Ã…hgren <email address hidden>
(cherry picked from commit e616b4210b051d7652e7c60e87357aad13ff06b9)