~canonical-hwe-team/hwe-next/+git/sof:module_reset_API

Last commit made on 2022-12-16
Get this branch:
git clone -b module_reset_API https://git.launchpad.net/~canonical-hwe-team/hwe-next/+git/sof

Branch merges

Branch information

Name:
module_reset_API
Repository:
lp:~canonical-hwe-team/hwe-next/+git/sof

Recent commits

d7764a9... by "barry.jan" <email address hidden>

module_adapter: free memory resource

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)

3e1ad2e... by "Joe.Cheng" <email address hidden>

module_adapter:dts: required code update for DTS library v1.0.7

1. Remove totalBufferLengthInBytes as it's handled by SDK internally now.
2. Add debug log to print config size

Signed-off-by: Joe.Cheng <email address hidden>
(cherry picked from commit 33cd4ce23fb8b686d0e8db897ca0982568f76ed9)

69157d5... by "Joe.Cheng" <email address hidden>

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.

Signed-off-by: Guennadi Liakhovetski <email address hidden>
Signed-off-by: Ranjani Sridharan <email address hidden>
(cherry picked from commit b9889d52d0e1b6002ee016b55fa0487544fc0593)

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.

Signed-off-by: Serhiy Katsyuba <email address hidden>
(cherry picked from commit 8e59c9617376597459000ea956490a5328b68033)

332e5bf... by Pin-chih Lin <email address hidden>

topology: add more make cases for ADL

Adds cases {MAX09360A + RTNR + GOOGLE_RTC_AUDIO} and
{CS35L41 + WAVES}.

Signed-off-by: Pin-chih Lin <email address hidden>

b730c1c... by Pin-chih Lin <email address hidden>

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)

4bad8c2... by Pin-chih Lin <email address hidden>

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)