-
Notifications
You must be signed in to change notification settings - Fork 322
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
waves: add support for IPC4 compilation, including as LLEXT
With this waves can be built as a part of IPC4 configuration - either linked into the base image or as a LLEXT module. Signed-off-by: Guennadi Liakhovetski <guennadi.liakhovetski@linux.intel.com>
- Loading branch information
Showing
7 changed files
with
84 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
11 changes: 11 additions & 0 deletions
11
src/audio/module_adapter/module/waves/llext/CMakeLists.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
# Copyright (c) 2025 Intel Corporation. | ||
# SPDX-License-Identifier: Apache-2.0 | ||
|
||
if(CONFIG_WAVES_CODEC_STUB) | ||
sof_llext_build("waves" | ||
SOURCES ../waves.c | ||
../maxx_stub.c | ||
) | ||
else() | ||
message(FATAL_ERROR "Add library linking support in src/audio/module_adapter/module/waves/llext/CMakeLists.txt") | ||
endif() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#include <tools/rimage/config/platform.toml> | ||
#define LOAD_TYPE "2" | ||
#include "../waves.toml" | ||
[module] | ||
count = __COUNTER__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
#ifndef LOAD_TYPE | ||
#define LOAD_TYPE "0" | ||
#endif | ||
|
||
REM # waves module config | ||
[[module.entry]] | ||
name = "WAVES" | ||
uuid = "D944281A-AFE9-4695-A043-D7F62B89538E" | ||
affinity_mask = "0x1" | ||
instance_count = "4" | ||
domain_types = "0" | ||
load_type = LOAD_TYPE | ||
module_type = "13" | ||
auto_start = "0" | ||
sched_caps = [1, 0x00008000] | ||
|
||
REM # pin = [dir, type, sample rate, size, container, channel-cfg] | ||
pin = [0, 0, 0xfeef, 0xf, 0xf, 0x45ff, | ||
1, 0, 0xfeef, 0xf, 0xf, 0x1ff] | ||
|
||
REM # mod_cfg [PAR_0 PAR_1 PAR_2 PAR_3 IS_BYTES CPS IBS OBS MOD_FLAGS CPC OBLS] | ||
mod_cfg = [0, 0, 0, 0, 4096, 1000000, 128, 128, 0, 0, 0] | ||
|
||
index = __COUNTER__ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters