From 90fef5afd2adf2cba7f6a5f26f0b25f1c4833f60 Mon Sep 17 00:00:00 2001 From: Fabiola Kwasowiec Date: Tue, 17 Oct 2023 12:47:03 +0200 Subject: [PATCH] src_lite: add module Addition of SRC Lite module, which only supports a subset of conversions supported by the SRC module. Purpose of SRC Lite module is memory optimization. Code of SRC Lite is drastically reduced and requires significantly less memory. When needed one of defined conversions, driver can choose SRC Lite module instead of SRC module to optimize memory utilization. 48 -> 16kHz 44.1 -> 16 kHz 32 -> 16 kHz 44.1 -> 48 Signed-off-by: Fabiola Kwasowiec --- app/boards/intel_adsp_ace15_mtpm.conf | 1 + src/audio/Kconfig | 12 ++ .../src/coef/src_ipc4_int32_10_21_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_10_21_3455_5000.h | 2 +- .../src/coef/src_ipc4_int32_10_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_10_9_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_16_21_4319_5000.h | 2 +- .../src/coef/src_ipc4_int32_16_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_16_7_4082_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_2_2268_5000.h | 1 - .../src/coef/src_ipc4_int32_1_2_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_2_2721_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_2_3401_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_2_3887_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_2_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_3_2268_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_3_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_4_1512_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_4_2268_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_4_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_1_6_1134_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_21_1250_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_21_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_21_3125_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_21_4167_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_20_7_2976_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_10_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_10_3455_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_10_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_16_4319_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_16_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_20_1250_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_20_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_20_3125_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_20_4167_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_20_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_2_3239_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_32_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_40_2381_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_40_3968_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_4_1080_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_4_3239_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_5_1728_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_5_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_80_3968_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_8_2160_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_8_3239_5000.h | 2 +- .../src/coef/src_ipc4_int32_21_8_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_1_2268_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_1_2500_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_1_2721_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_1_3401_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_1_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_2_3_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_32_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_3_1_2268_5000.h | 2 +- .../src/coef/src_ipc4_int32_3_1_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_3_2_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_3_4_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_40_21_2381_5000.h | 2 +- .../src/coef/src_ipc4_int32_40_21_2976_5000.h | 2 +- .../src/coef/src_ipc4_int32_40_21_3968_5000.h | 1 - .../src/coef/src_ipc4_int32_40_7_2976_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_1_1134_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_1_1512_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_1_2268_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_1_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_21_1080_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_21_3239_5000.h | 2 +- .../src/coef/src_ipc4_int32_4_3_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_5_21_1728_5000.h | 2 +- .../src/coef/src_ipc4_int32_5_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_5_7_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_6_1_1134_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_3_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_5_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_8_1361_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_8_2468_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_8_2721_5000.h | 2 +- .../src/coef/src_ipc4_int32_7_8_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_21_2160_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_21_3239_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_21_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_7_1361_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_7_2468_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_7_2721_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_7_4082_5000.h | 2 +- .../src/coef/src_ipc4_int32_8_7_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_table.h | 1 - .../src/coef/src_lite_ipc4_int32_define.h | 23 ++++ .../src/coef/src_lite_ipc4_int32_table.h | 43 ++++++ .../src/coef/src_small_int32_1_2_2268_5000.h | 1 - .../src/coef/src_small_int32_1_2_4535_5000.h | 1 - .../src/coef/src_small_int32_1_3_2268_5000.h | 1 - .../src/coef/src_small_int32_1_3_4535_5000.h | 1 - .../coef/src_small_int32_20_21_4167_5000.h | 1 - .../coef/src_small_int32_21_20_4167_5000.h | 1 - .../src/coef/src_small_int32_2_1_2268_5000.h | 1 - .../src/coef/src_small_int32_2_1_4535_5000.h | 1 - .../src/coef/src_small_int32_2_3_4535_5000.h | 1 - .../src/coef/src_small_int32_3_1_2268_5000.h | 1 - .../src/coef/src_small_int32_3_1_4535_5000.h | 1 - .../src/coef/src_small_int32_3_2_4535_5000.h | 1 - .../src/coef/src_small_int32_3_4_4535_5000.h | 1 - .../src/coef/src_small_int32_4_3_4535_5000.h | 1 - .../src/coef/src_small_int32_4_5_4535_5000.h | 1 - .../src/coef/src_small_int32_5_4_4535_5000.h | 1 - .../src/coef/src_small_int32_5_6_4354_5000.h | 1 - .../src/coef/src_small_int32_6_5_4354_5000.h | 1 - .../src/coef/src_small_int32_7_8_4535_5000.h | 1 - .../src/coef/src_small_int32_8_7_4535_5000.h | 1 - src/audio/src/coef/src_small_int32_table.h | 2 +- src/audio/src/coef/src_std_int32_table.h | 2 +- src/audio/src/coef/src_tiny_int16_table.h | 1 - src/audio/src/src.c | 122 ++++++------------ src/audio/src/src.h | 86 +++++++++++- src/audio/src/src_lite.c | 32 +++++ tools/rimage/config/mtl.toml | 43 +++++- zephyr/CMakeLists.txt | 3 + 120 files changed, 366 insertions(+), 197 deletions(-) create mode 100644 src/audio/src/coef/src_lite_ipc4_int32_define.h create mode 100644 src/audio/src/coef/src_lite_ipc4_int32_table.h create mode 100644 src/audio/src/src_lite.c diff --git a/app/boards/intel_adsp_ace15_mtpm.conf b/app/boards/intel_adsp_ace15_mtpm.conf index ac1a3c846441..7f0938bbdd5b 100644 --- a/app/boards/intel_adsp_ace15_mtpm.conf +++ b/app/boards/intel_adsp_ace15_mtpm.conf @@ -3,6 +3,7 @@ CONFIG_IPC_MAJOR_4=y CONFIG_COMP_SRC=y CONFIG_COMP_SRC_IPC4_FULL_MATRIX=y +CONFIG_COMP_SRC_LITE=y CONFIG_COMP_DRC=y CONFIG_COMP_CROSSOVER=y CONFIG_COMP_MULTIBAND_DRC=y diff --git a/src/audio/Kconfig b/src/audio/Kconfig index 8c533713419a..b05957a835d3 100644 --- a/src/audio/Kconfig +++ b/src/audio/Kconfig @@ -126,6 +126,18 @@ config COMP_SRC help Select for SRC component +config COMP_SRC_LITE + bool "SRC_LITE component" + default y + help + Select for SRC_LITE component + which only supports a subset of conversions + supported by the SRC module: + 48 -> 16kHz + 44.1 -> 16 kHz + 32 -> 16 kHz + 44.1 -> 48 + config COMP_STUBS bool "Build all selected third-party (3P) components with stubs" default n diff --git a/src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h index d1d115ee44a0..48030954faa5 100644 --- a/src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_10_21_2500_5000_fir[480] = { diff --git a/src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h b/src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h index 18c85e663503..c0e8973896ad 100644 --- a/src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_10_21_3455_5000_fir[640] = { diff --git a/src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h index 44548957393b..86d846a7c806 100644 --- a/src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_10_21_4535_5000_fir[2320] = { diff --git a/src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h index 25cc0225e3be..b8ce8872260a 100644 --- a/src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_10_9_4535_5000_fir[1080] = { diff --git a/src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h b/src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h index 337160da937f..7afecdab5e9a 100644 --- a/src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_16_21_4319_5000_fir[1472] = { diff --git a/src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h index e3c61b76f695..f23f95bf5f36 100644 --- a/src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_16_21_4535_5000_fir[2048] = { diff --git a/src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h b/src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h index 43805148096f..a28a8804180f 100644 --- a/src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_16_7_4082_5000_fir[896] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h index be58891825a2..6439054b1a53 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h @@ -5,7 +5,6 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" #include const int32_t src_int32_1_2_2268_5000_fir[36] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h index 969ee2727761..5e619afffb81 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_2_2500_5000_fir[40] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h index 92d3ee21d921..c93526f5354a 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_2_2721_5000_fir[44] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h index e3556ed816c1..67b9e495a922 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_2_3401_5000_fir[60] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h index 369c861cd598..154fa629e140 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_2_3887_5000_fir[84] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h index c5221b373733..eed23b13668e 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_2_4535_5000_fir[192] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h index 51c259bc7617..5a455da33297 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_3_2268_5000_fir[52] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h index 1f717019d9ea..a22d7c3da8e1 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_3_4535_5000_fir[260] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h b/src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h index fcf3ba774765..5426a9ff0404 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_4_1512_5000_fir[52] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h index b2f84d157233..d375e6625f1f 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_4_2268_5000_fir[60] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h index b33697aedb89..9522110b2d66 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_4_4535_5000_fir[332] = { diff --git a/src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h b/src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h index 6cc06424de00..02afd78663a4 100644 --- a/src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_1_6_1134_5000_fir[68] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h b/src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h index b50d11408430..dfd8d462b9ec 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_21_1250_5000_fir[320] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h index 5828ac080c60..021c9572342d 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_21_2500_5000_fir[560] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h b/src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h index c34349e9e25e..09a71eb3dadd 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_21_3125_5000_fir[640] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h b/src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h index 521d2f244aa2..5eb7c718b39c 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_21_4167_5000_fir[1200] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h index 0a1677d6f277..75e59fa53554 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_21_4535_5000_fir[2080] = { diff --git a/src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h b/src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h index a16d7b713113..0e076dfa6b22 100644 --- a/src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_20_7_2976_5000_fir[560] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h index e58dddfb028a..8e59eac928a1 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_10_2500_5000_fir[504] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h b/src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h index ec2fef3d8cd7..2d3f3b0c4a22 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_10_3455_5000_fir[756] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h index f24f635f1ac5..ef37e5b74280 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_10_4535_5000_fir[2520] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h b/src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h index aab03d7e8db5..be79e187c8a2 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_16_4319_5000_fir[1596] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h index 924268316718..9afb6408f986 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_16_4535_5000_fir[2436] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h b/src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h index a4c08f30e549..a420745baa54 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_20_1250_5000_fir[420] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h index 356e9539e193..87c0f8a79e01 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_20_2500_5000_fir[504] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h b/src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h index fa68cd2fe43a..692597e7093e 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_20_3125_5000_fir[672] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h b/src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h index e1476e94177a..a5125e18b35f 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_20_4167_5000_fir[1260] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h index 603779985693..85f20e60c536 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_20_4535_5000_fir[2268] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h b/src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h index 0dec16ed1041..d4a99940d49c 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_2_3239_5000_fir[672] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h index 445cba531dbd..838aeab0b802 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_32_4535_5000_fir[3612] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h b/src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h index 654a37afa02a..bcefb4d03299 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_40_2381_5000_fir[924] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h b/src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h index 63b0727e24c5..ce9e0cb6ddb1 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_40_3968_5000_fir[1680] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h b/src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h index f22d15eca1bf..de8beea74d01 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_4_1080_5000_fir[336] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h b/src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h index 6c4d3524e4dc..5b8aaf04755c 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_4_3239_5000_fir[672] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_5_1728_5000.h b/src/audio/src/coef/src_ipc4_int32_21_5_1728_5000.h index 8d5e1920f9c1..0f6a4110f090 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_5_1728_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_5_1728_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_5_1728_5000_fir[420] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_5_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_5_4535_5000.h index 4f4d101eb8e4..e7e0f09a3d8f 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_5_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_5_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_5_4535_5000_fir[2184] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_80_3968_5000.h b/src/audio/src/coef/src_ipc4_int32_21_80_3968_5000.h index e2a51e917c54..71ed1ba54db3 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_80_3968_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_80_3968_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_80_3968_5000_fir[3360] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_8_2160_5000.h b/src/audio/src/coef/src_ipc4_int32_21_8_2160_5000.h index 860c7d00c3b5..54ccaae7be81 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_8_2160_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_8_2160_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_8_2160_5000_fir[420] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_8_3239_5000.h b/src/audio/src/coef/src_ipc4_int32_21_8_3239_5000.h index b6568d54b125..3c60f57466f6 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_8_3239_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_8_3239_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_8_3239_5000_fir[672] = { diff --git a/src/audio/src/coef/src_ipc4_int32_21_8_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_21_8_4535_5000.h index d2d853e7af50..77061aec771d 100644 --- a/src/audio/src/coef/src_ipc4_int32_21_8_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_21_8_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_21_8_4535_5000_fir[2436] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_1_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_2_1_2268_5000.h index 09c3bff531dd..5278f76504fd 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_1_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_1_2268_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_1_2268_5000_fir[48] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_1_2500_5000.h b/src/audio/src/coef/src_ipc4_int32_2_1_2500_5000.h index 83488544fdf0..ccd0fce5856c 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_1_2500_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_1_2500_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_1_2500_5000_fir[40] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_1_2721_5000.h b/src/audio/src/coef/src_ipc4_int32_2_1_2721_5000.h index 20de3bfeb5a3..eaa8f4c38814 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_1_2721_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_1_2721_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_1_2721_5000_fir[48] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_1_3401_5000.h b/src/audio/src/coef/src_ipc4_int32_2_1_3401_5000.h index 9dd605d6e52a..93afa72dc538 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_1_3401_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_1_3401_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_1_3401_5000_fir[72] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_1_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_2_1_4535_5000.h index 732ef897a283..baf8f5fb4cfd 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_1_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_1_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_1_4535_5000_fir[240] = { diff --git a/src/audio/src/coef/src_ipc4_int32_2_3_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_2_3_4535_5000.h index 79eb8611a146..9adf487a73be 100644 --- a/src/audio/src/coef/src_ipc4_int32_2_3_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_2_3_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_2_3_4535_5000_fir[264] = { diff --git a/src/audio/src/coef/src_ipc4_int32_32_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_32_21_4535_5000.h index df6eef20aeae..89c7e885a064 100644 --- a/src/audio/src/coef/src_ipc4_int32_32_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_32_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_32_21_4535_5000_fir[3840] = { diff --git a/src/audio/src/coef/src_ipc4_int32_3_1_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_3_1_2268_5000.h index 5edce0ac9d2d..02ac3227cec4 100644 --- a/src/audio/src/coef/src_ipc4_int32_3_1_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_3_1_2268_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_3_1_2268_5000_fir[72] = { diff --git a/src/audio/src/coef/src_ipc4_int32_3_1_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_3_1_4535_5000.h index eee1b3a17b92..6f3af03b34fb 100644 --- a/src/audio/src/coef/src_ipc4_int32_3_1_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_3_1_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_3_1_4535_5000_fir[336] = { diff --git a/src/audio/src/coef/src_ipc4_int32_3_2_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_3_2_4535_5000.h index 815f41b7bc60..7b528ca29668 100644 --- a/src/audio/src/coef/src_ipc4_int32_3_2_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_3_2_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_3_2_4535_5000_fir[324] = { diff --git a/src/audio/src/coef/src_ipc4_int32_3_4_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_3_4_4535_5000.h index 1c4a33a25539..87183cbf7fab 100644 --- a/src/audio/src/coef/src_ipc4_int32_3_4_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_3_4_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_3_4_4535_5000_fir[360] = { diff --git a/src/audio/src/coef/src_ipc4_int32_40_21_2381_5000.h b/src/audio/src/coef/src_ipc4_int32_40_21_2381_5000.h index cec8b5f212fe..5a0751a569e6 100644 --- a/src/audio/src/coef/src_ipc4_int32_40_21_2381_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_40_21_2381_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_40_21_2381_5000_fir[960] = { diff --git a/src/audio/src/coef/src_ipc4_int32_40_21_2976_5000.h b/src/audio/src/coef/src_ipc4_int32_40_21_2976_5000.h index df32a455a27c..6df84d8ec71b 100644 --- a/src/audio/src/coef/src_ipc4_int32_40_21_2976_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_40_21_2976_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_40_21_2976_5000_fir[1120] = { diff --git a/src/audio/src/coef/src_ipc4_int32_40_21_3968_5000.h b/src/audio/src/coef/src_ipc4_int32_40_21_3968_5000.h index 31d57d112ddc..eb417efac43f 100644 --- a/src/audio/src/coef/src_ipc4_int32_40_21_3968_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_40_21_3968_5000.h @@ -5,7 +5,6 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" #include const int32_t src_int32_40_21_3968_5000_fir[2080] = { diff --git a/src/audio/src/coef/src_ipc4_int32_40_7_2976_5000.h b/src/audio/src/coef/src_ipc4_int32_40_7_2976_5000.h index da0467c3c147..ec29d256dc23 100644 --- a/src/audio/src/coef/src_ipc4_int32_40_7_2976_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_40_7_2976_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_40_7_2976_5000_fir[1120] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_1_1134_5000.h b/src/audio/src/coef/src_ipc4_int32_4_1_1134_5000.h index a6698dac6739..94dc4fe2d061 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_1_1134_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_1_1134_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_1_1134_5000_fir[64] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_1_1512_5000.h b/src/audio/src/coef/src_ipc4_int32_4_1_1512_5000.h index 0f5b9d267505..d24439378e7d 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_1_1512_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_1_1512_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_1_1512_5000_fir[64] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_1_2268_5000.h b/src/audio/src/coef/src_ipc4_int32_4_1_2268_5000.h index 2caa64654899..6debcd407b01 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_1_2268_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_1_2268_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_1_2268_5000_fir[80] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_1_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_4_1_4535_5000.h index efb70988f749..c54bcbaec041 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_1_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_1_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_1_4535_5000_fir[416] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_21_1080_5000.h b/src/audio/src/coef/src_ipc4_int32_4_21_1080_5000.h index 7b5a30d154b2..9087729b2c20 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_21_1080_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_21_1080_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_21_1080_5000_fir[224] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_21_3239_5000.h b/src/audio/src/coef/src_ipc4_int32_4_21_3239_5000.h index 1b876606df53..8bccc923b22b 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_21_3239_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_21_3239_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_21_3239_5000_fir[512] = { diff --git a/src/audio/src/coef/src_ipc4_int32_4_3_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_4_3_4535_5000.h index 84ab1b359e7b..0ec9006187bc 100644 --- a/src/audio/src/coef/src_ipc4_int32_4_3_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_4_3_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_4_3_4535_5000_fir[432] = { diff --git a/src/audio/src/coef/src_ipc4_int32_5_21_1728_5000.h b/src/audio/src/coef/src_ipc4_int32_5_21_1728_5000.h index 226e1a6216af..6996b1b22e27 100644 --- a/src/audio/src/coef/src_ipc4_int32_5_21_1728_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_5_21_1728_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_5_21_1728_5000_fir[320] = { diff --git a/src/audio/src/coef/src_ipc4_int32_5_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_5_21_4535_5000.h index 290d409fd00d..e6a61dde3ab1 100644 --- a/src/audio/src/coef/src_ipc4_int32_5_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_5_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_5_21_4535_5000_fir[1740] = { diff --git a/src/audio/src/coef/src_ipc4_int32_5_7_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_5_7_4535_5000.h index f8314556a665..a53184414f6a 100644 --- a/src/audio/src/coef/src_ipc4_int32_5_7_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_5_7_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_5_7_4535_5000_fir[680] = { diff --git a/src/audio/src/coef/src_ipc4_int32_6_1_1134_5000.h b/src/audio/src/coef/src_ipc4_int32_6_1_1134_5000.h index ddf6e0c51bde..0a0fdc47204b 100644 --- a/src/audio/src/coef/src_ipc4_int32_6_1_1134_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_6_1_1134_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_6_1_1134_5000_fir[96] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_3_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_7_3_4535_5000.h index 1b40753e77d7..182a13ff7da8 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_3_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_3_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_3_4535_5000_fir[728] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_5_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_7_5_4535_5000.h index 0e7ecf543842..9892f3419692 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_5_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_5_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_5_4535_5000_fir[812] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_8_1361_5000.h b/src/audio/src/coef/src_ipc4_int32_7_8_1361_5000.h index d5a31e8fa3d4..caa97de96c8a 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_8_1361_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_8_1361_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_8_1361_5000_fir[140] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_8_2468_5000.h b/src/audio/src/coef/src_ipc4_int32_7_8_2468_5000.h index c68546b258d9..f47683dadc66 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_8_2468_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_8_2468_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_8_2468_5000_fir[196] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_8_2721_5000.h b/src/audio/src/coef/src_ipc4_int32_7_8_2721_5000.h index 3c7c02ecbc3d..1d53d3f887c1 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_8_2721_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_8_2721_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_8_2721_5000_fir[224] = { diff --git a/src/audio/src/coef/src_ipc4_int32_7_8_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_7_8_4535_5000.h index 3037d3dd258e..afbc84f69fb1 100644 --- a/src/audio/src/coef/src_ipc4_int32_7_8_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_7_8_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_7_8_4535_5000_fir[840] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_21_2160_5000.h b/src/audio/src/coef/src_ipc4_int32_8_21_2160_5000.h index c687495d433d..a8db0edae0f1 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_21_2160_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_21_2160_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_21_2160_5000_fir[384] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_21_3239_5000.h b/src/audio/src/coef/src_ipc4_int32_8_21_3239_5000.h index 4bc6f351e350..6c94c2eb5b1f 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_21_3239_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_21_3239_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_21_3239_5000_fir[544] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_21_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_8_21_4535_5000.h index d61a7d09d215..6ed9f654954f 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_21_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_21_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_21_4535_5000_fir[1984] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_7_1361_5000.h b/src/audio/src/coef/src_ipc4_int32_8_7_1361_5000.h index a0746b412434..78b22782c66a 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_7_1361_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_7_1361_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_7_1361_5000_fir[160] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_7_2468_5000.h b/src/audio/src/coef/src_ipc4_int32_8_7_2468_5000.h index 01b479c08705..f8c8b11efddc 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_7_2468_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_7_2468_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_7_2468_5000_fir[192] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_7_2721_5000.h b/src/audio/src/coef/src_ipc4_int32_8_7_2721_5000.h index 921abdb6b94d..b71b96071313 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_7_2721_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_7_2721_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_7_2721_5000_fir[192] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_7_4082_5000.h b/src/audio/src/coef/src_ipc4_int32_8_7_4082_5000.h index 7a5b0ec6b469..2e02d9c80455 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_7_4082_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_7_4082_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_7_4082_5000_fir[480] = { diff --git a/src/audio/src/coef/src_ipc4_int32_8_7_4535_5000.h b/src/audio/src/coef/src_ipc4_int32_8_7_4535_5000.h index 51b0c1dc13df..8754d53b2cad 100644 --- a/src/audio/src/coef/src_ipc4_int32_8_7_4535_5000.h +++ b/src/audio/src/coef/src_ipc4_int32_8_7_4535_5000.h @@ -5,7 +5,7 @@ */ /** \cond GENERATED_BY_TOOLS_TUNE_SRC */ -#include "../src.h" + #include const int32_t src_int32_8_7_4535_5000_fir[896] = { diff --git a/src/audio/src/coef/src_ipc4_int32_table.h b/src/audio/src/coef/src_ipc4_int32_table.h index 23a470ad7025..98f7cc0e9f09 100644 --- a/src/audio/src/coef/src_ipc4_int32_table.h +++ b/src/audio/src/coef/src_ipc4_int32_table.h @@ -97,7 +97,6 @@ #include "src_ipc4_int32_40_21_2381_5000.h" #include "src_ipc4_int32_40_21_2976_5000.h" #include "src_ipc4_int32_40_21_3968_5000.h" -#include "../src.h" #include /* SRC table */ diff --git a/src/audio/src/coef/src_lite_ipc4_int32_define.h b/src/audio/src/coef/src_lite_ipc4_int32_define.h new file mode 100644 index 000000000000..c690f3c7338f --- /dev/null +++ b/src/audio/src/coef/src_lite_ipc4_int32_define.h @@ -0,0 +1,23 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * + * Copyright(c) 2023 Intel Corporation. All rights reserved. + * + * Author: Fabiola Jasinska + */ + +#ifndef __SOF_AUDIO_COEFFICIENTS_SRC_SRC_IPC4_INT32_DEFINE_H__ +#define __SOF_AUDIO_COEFFICIENTS_SRC_SRC_IPC4_INT32_DEFINE_H__ + +/* SRC constants */ +#define MAX_FIR_DELAY_SIZE 730 +#define MAX_OUT_DELAY_SIZE 900 +#define MAX_BLK_IN 80 +#define MAX_BLK_OUT 40 +#define NUM_IN_FS 16 +#define NUM_OUT_FS 10 +#define STAGE1_TIMES_MAX 32 +#define STAGE2_TIMES_MAX 32 +#define STAGE_BUF_SIZE 672 +#define NUM_ALL_COEFFICIENTS 69224 + +#endif /* __SOF_AUDIO_COEFFICIENTS_SRC_SRC_IPC4_INT32_DEFINE_H__ */ diff --git a/src/audio/src/coef/src_lite_ipc4_int32_table.h b/src/audio/src/coef/src_lite_ipc4_int32_table.h new file mode 100644 index 000000000000..90f6b6d15c8a --- /dev/null +++ b/src/audio/src/coef/src_lite_ipc4_int32_table.h @@ -0,0 +1,43 @@ +/* SPDX-License-Identifier: BSD-3-Clause + * + * Copyright(c) 2023 Intel Corporation. All rights reserved. + * + */ + +/** \cond GENERATED_BY_TOOLS_TUNE_SRC */ + +#ifndef __SOF_AUDIO_COEFFICIENTS_SRC_src_IPC4_INT32_TABLE_H__ +#define __SOF_AUDIO_COEFFICIENTS_SRC_src_IPC4_INT32_TABLE_H__ + +/* SRC conversions */ +#include "src_ipc4_int32_1_2_4535_5000.h" +#include "src_ipc4_int32_10_21_3455_5000.h" +#include "src_ipc4_int32_1_3_4535_5000.h" +#include "src_ipc4_int32_3_2_4535_5000.h" +#include "src_ipc4_int32_8_7_4535_5000.h" +#include "src_ipc4_int32_16_21_4535_5000.h" +#include "src_ipc4_int32_20_21_4167_5000.h" + +#include + +/* SRC table */ +int32_t src_fir_one = Q_CONVERT_FLOAT(1, 30); +struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &src_fir_one }; +struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &src_fir_one }; +int src_in_fs[3] = { 32000, 44100, 48000}; +int src_out_fs[2] = {16000, 48000}; + +struct src_stage *src_table1[2][3] = { + { &src_int32_1_2_4535_5000, &src_int32_10_21_3455_5000, + &src_int32_1_3_4535_5000 }, + { &src_int32_3_2_4535_5000, &src_int32_8_7_4535_5000, &src_int32_1_1_0_0 } +}; + +struct src_stage *src_table2[2][3] = { + { &src_int32_1_1_0_0, &src_int32_16_21_4535_5000, &src_int32_1_1_0_0 }, + { &src_int32_1_1_0_0, &src_int32_20_21_4167_5000, &src_int32_1_1_0_0 } +}; + +#endif /* __SOF_AUDIO_COEFFICIENTS_SRC_src_IPC4_INT32_TABLE_H__ */ + +/** \endcond */ diff --git a/src/audio/src/coef/src_small_int32_1_2_2268_5000.h b/src/audio/src/coef/src_small_int32_1_2_2268_5000.h index e71ef83a079e..e47e44345aa9 100644 --- a/src/audio/src/coef/src_small_int32_1_2_2268_5000.h +++ b/src/audio/src/coef/src_small_int32_1_2_2268_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_1_2_2268_5000_fir[40] = { diff --git a/src/audio/src/coef/src_small_int32_1_2_4535_5000.h b/src/audio/src/coef/src_small_int32_1_2_4535_5000.h index 9a207cfc4a78..bc677003b18b 100644 --- a/src/audio/src/coef/src_small_int32_1_2_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_1_2_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_1_2_4535_5000_fir[200] = { diff --git a/src/audio/src/coef/src_small_int32_1_3_2268_5000.h b/src/audio/src/coef/src_small_int32_1_3_2268_5000.h index 22114da5f961..b56245e5b61c 100644 --- a/src/audio/src/coef/src_small_int32_1_3_2268_5000.h +++ b/src/audio/src/coef/src_small_int32_1_3_2268_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_1_3_2268_5000_fir[56] = { diff --git a/src/audio/src/coef/src_small_int32_1_3_4535_5000.h b/src/audio/src/coef/src_small_int32_1_3_4535_5000.h index 40d2c1d57b00..9086231b48b1 100644 --- a/src/audio/src/coef/src_small_int32_1_3_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_1_3_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_1_3_4535_5000_fir[268] = { diff --git a/src/audio/src/coef/src_small_int32_20_21_4167_5000.h b/src/audio/src/coef/src_small_int32_20_21_4167_5000.h index 5ba424809efe..d8c4224bc811 100644 --- a/src/audio/src/coef/src_small_int32_20_21_4167_5000.h +++ b/src/audio/src/coef/src_small_int32_20_21_4167_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_20_21_4167_5000_fir[1120] = { diff --git a/src/audio/src/coef/src_small_int32_21_20_4167_5000.h b/src/audio/src/coef/src_small_int32_21_20_4167_5000.h index 5280f529fb30..19872b67f0fd 100644 --- a/src/audio/src/coef/src_small_int32_21_20_4167_5000.h +++ b/src/audio/src/coef/src_small_int32_21_20_4167_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_21_20_4167_5000_fir[1092] = { diff --git a/src/audio/src/coef/src_small_int32_2_1_2268_5000.h b/src/audio/src/coef/src_small_int32_2_1_2268_5000.h index 3b727a0d782b..cfc1c9c42728 100644 --- a/src/audio/src/coef/src_small_int32_2_1_2268_5000.h +++ b/src/audio/src/coef/src_small_int32_2_1_2268_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_2_1_2268_5000_fir[40] = { diff --git a/src/audio/src/coef/src_small_int32_2_1_4535_5000.h b/src/audio/src/coef/src_small_int32_2_1_4535_5000.h index 4d2d75ec328b..31e1d3e361f7 100644 --- a/src/audio/src/coef/src_small_int32_2_1_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_2_1_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_2_1_4535_5000_fir[200] = { diff --git a/src/audio/src/coef/src_small_int32_2_3_4535_5000.h b/src/audio/src/coef/src_small_int32_2_3_4535_5000.h index b6b464f6b4bf..4c64cb49c4d1 100644 --- a/src/audio/src/coef/src_small_int32_2_3_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_2_3_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_2_3_4535_5000_fir[272] = { diff --git a/src/audio/src/coef/src_small_int32_3_1_2268_5000.h b/src/audio/src/coef/src_small_int32_3_1_2268_5000.h index 8b79acf94a6e..f8a379ed0b3f 100644 --- a/src/audio/src/coef/src_small_int32_3_1_2268_5000.h +++ b/src/audio/src/coef/src_small_int32_3_1_2268_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_3_1_2268_5000_fir[60] = { diff --git a/src/audio/src/coef/src_small_int32_3_1_4535_5000.h b/src/audio/src/coef/src_small_int32_3_1_4535_5000.h index 33ebefc04653..e7d2c66009f6 100644 --- a/src/audio/src/coef/src_small_int32_3_1_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_3_1_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_3_1_4535_5000_fir[276] = { diff --git a/src/audio/src/coef/src_small_int32_3_2_4535_5000.h b/src/audio/src/coef/src_small_int32_3_2_4535_5000.h index 668947ceb7e6..c221fb86dbdb 100644 --- a/src/audio/src/coef/src_small_int32_3_2_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_3_2_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_3_2_4535_5000_fir[276] = { diff --git a/src/audio/src/coef/src_small_int32_3_4_4535_5000.h b/src/audio/src/coef/src_small_int32_3_4_4535_5000.h index b6527580c8f2..f0d1527b74aa 100644 --- a/src/audio/src/coef/src_small_int32_3_4_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_3_4_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_3_4_4535_5000_fir[348] = { diff --git a/src/audio/src/coef/src_small_int32_4_3_4535_5000.h b/src/audio/src/coef/src_small_int32_4_3_4535_5000.h index 5266ca1448c9..8cf22c9a9eb7 100644 --- a/src/audio/src/coef/src_small_int32_4_3_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_4_3_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_4_3_4535_5000_fir[352] = { diff --git a/src/audio/src/coef/src_small_int32_4_5_4535_5000.h b/src/audio/src/coef/src_small_int32_4_5_4535_5000.h index 4eca45e3d5f8..10c49bd6f82f 100644 --- a/src/audio/src/coef/src_small_int32_4_5_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_4_5_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_4_5_4535_5000_fir[448] = { diff --git a/src/audio/src/coef/src_small_int32_5_4_4535_5000.h b/src/audio/src/coef/src_small_int32_5_4_4535_5000.h index 79240798db05..3e8c24769c44 100644 --- a/src/audio/src/coef/src_small_int32_5_4_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_5_4_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_5_4_4535_5000_fir[440] = { diff --git a/src/audio/src/coef/src_small_int32_5_6_4354_5000.h b/src/audio/src/coef/src_small_int32_5_6_4354_5000.h index a34c3d2d7c1f..1323d07df6d0 100644 --- a/src/audio/src/coef/src_small_int32_5_6_4354_5000.h +++ b/src/audio/src/coef/src_small_int32_5_6_4354_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_5_6_4354_5000_fir[380] = { diff --git a/src/audio/src/coef/src_small_int32_6_5_4354_5000.h b/src/audio/src/coef/src_small_int32_6_5_4354_5000.h index 1cb91867ff13..959a4cf8e041 100644 --- a/src/audio/src/coef/src_small_int32_6_5_4354_5000.h +++ b/src/audio/src/coef/src_small_int32_6_5_4354_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_6_5_4354_5000_fir[384] = { diff --git a/src/audio/src/coef/src_small_int32_7_8_4535_5000.h b/src/audio/src/coef/src_small_int32_7_8_4535_5000.h index 537a4e1d63ca..0dd63132b167 100644 --- a/src/audio/src/coef/src_small_int32_7_8_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_7_8_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_7_8_4535_5000_fir[644] = { diff --git a/src/audio/src/coef/src_small_int32_8_7_4535_5000.h b/src/audio/src/coef/src_small_int32_8_7_4535_5000.h index fda7bb6c4e41..4f0aeecdde94 100644 --- a/src/audio/src/coef/src_small_int32_8_7_4535_5000.h +++ b/src/audio/src/coef/src_small_int32_8_7_4535_5000.h @@ -4,7 +4,6 @@ * */ -#include "../src.h" #include const int32_t src_int32_8_7_4535_5000_fir[640] = { diff --git a/src/audio/src/coef/src_small_int32_table.h b/src/audio/src/coef/src_small_int32_table.h index 2fd22a6372f3..3a01957e9560 100644 --- a/src/audio/src/coef/src_small_int32_table.h +++ b/src/audio/src/coef/src_small_int32_table.h @@ -28,7 +28,7 @@ #include "src_small_int32_8_7_4535_5000.h" #include "src_small_int32_20_21_4167_5000.h" #include "src_small_int32_21_20_4167_5000.h" -#include "../src.h" + #include /* SRC table */ diff --git a/src/audio/src/coef/src_std_int32_table.h b/src/audio/src/coef/src_std_int32_table.h index 7905e3a88745..9d96da8c6658 100644 --- a/src/audio/src/coef/src_std_int32_table.h +++ b/src/audio/src/coef/src_std_int32_table.h @@ -38,7 +38,7 @@ #include "src_std_int32_21_80_3968_5000.h" #include "src_std_int32_32_21_4535_5000.h" #include "src_std_int32_40_21_3968_5000.h" -#include "../src.h" + #include /* SRC table */ diff --git a/src/audio/src/coef/src_tiny_int16_table.h b/src/audio/src/coef/src_tiny_int16_table.h index f4b7b790ca24..3a6003db75d8 100644 --- a/src/audio/src/coef/src_tiny_int16_table.h +++ b/src/audio/src/coef/src_tiny_int16_table.h @@ -23,7 +23,6 @@ #include "src_tiny_int16_21_20_1667_5000.h" #include "src_tiny_int16_24_25_1814_5000.h" #include "src_tiny_int16_25_24_1814_5000.h" -#include "../src.h" #include /* SRC table */ diff --git a/src/audio/src/src.c b/src/audio/src/src.c index d1966efe5e4e..0be34245189a 100644 --- a/src/audio/src/src.c +++ b/src/audio/src/src.c @@ -41,7 +41,10 @@ #include "src.h" #include "src_config.h" -#if SRC_SHORT || CONFIG_COMP_SRC_TINY +#ifdef SRC_LITE +#include "coef/src_lite_ipc4_int32_define.h" +#include "coef/src_lite_ipc4_int32_table.h" +#elif SRC_SHORT || CONFIG_COMP_SRC_TINY #include "coef/src_tiny_int16_define.h" #include "coef/src_tiny_int16_table.h" #elif CONFIG_COMP_SRC_SMALL @@ -63,34 +66,9 @@ LOG_MODULE_REGISTER(src, CONFIG_SOF_LOG_LEVEL); -/* Calculates the needed FIR delay line length */ -static int src_fir_delay_length(struct src_stage *s) -{ - return s->subfilter_length + (s->num_of_subfilters - 1) * s->idm - + s->blk_in; -} - -/* Calculates the FIR output delay line length */ -static int src_out_delay_length(struct src_stage *s) -{ - return 1 + (s->num_of_subfilters - 1) * s->odm; -} - -/* Returns index of a matching sample rate */ -static int src_find_fs(int fs_list[], int list_length, int fs) -{ - int i; - - for (i = 0; i < list_length; i++) { - if (fs_list[i] == fs) - return i; - } - return -EINVAL; -} - /* Calculates buffers to allocate for a SRC mode */ -static int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, - int nch) +int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, + int nch) { struct src_stage *stage1; struct src_stage *stage2; @@ -172,15 +150,9 @@ static int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, return 0; } -static void src_state_reset(struct src_state *state) -{ - state->fir_delay_size = 0; - state->out_delay_size = 0; -} - -static int init_stages(struct src_stage *stage1, struct src_stage *stage2, - struct polyphase_src *src, struct src_param *p, - int n, int32_t *delay_lines_start) +int init_stages(struct src_stage *stage1, struct src_stage *stage2, + struct polyphase_src *src, struct src_param *p, + int n, int32_t *delay_lines_start) { /* Clear FIR state */ src_state_reset(&src->state1); @@ -244,15 +216,6 @@ static int init_stages(struct src_stage *stage1, struct src_stage *stage2, return 0; } -void src_polyphase_reset(struct polyphase_src *src) -{ - src->number_of_stages = 0; - src->stage1 = NULL; - src->stage2 = NULL; - src_state_reset(&src->state1); - src_state_reset(&src->state2); -} - int src_polyphase_init(struct polyphase_src *src, struct src_param *p, int32_t *delay_lines_start) { @@ -291,16 +254,9 @@ int src_polyphase_init(struct polyphase_src *src, struct src_param *p, return n_stages; } -/* Fallback function */ -int src_fallback(struct comp_data *cd, struct sof_source *source, - struct sof_sink *sink) -{ - return 0; -} - /* Normal 2 stage SRC */ -static int src_2s(struct comp_data *cd, - struct sof_source *source, struct sof_sink *sink) +int src_2s(struct comp_data *cd, + struct sof_source *source, struct sof_sink *sink) { struct src_stage_prm s1; struct src_stage_prm s2; @@ -401,8 +357,8 @@ static int src_2s(struct comp_data *cd, } /* 1 stage SRC for simple conversions */ -static int src_1s(struct comp_data *cd, struct sof_source *source, - struct sof_sink *sink) +int src_1s(struct comp_data *cd, struct sof_source *source, + struct sof_sink *sink) { struct src_stage_prm s1; int ret; @@ -441,8 +397,8 @@ static int src_1s(struct comp_data *cd, struct sof_source *source, } /* A fast copy function for same in and out rate */ -static int src_copy_sxx(struct comp_data *cd, struct sof_source *source, - struct sof_sink *sink) +int src_copy_sxx(struct comp_data *cd, struct sof_source *source, + struct sof_sink *sink) { int frames = cd->param.blk_in; @@ -468,7 +424,7 @@ void src_set_alignment(struct sof_source *source, struct sof_sink *sink) sink_set_alignment_constants(sink, byte_align, frame_align_req); } -static int src_verify_params(struct processing_module *mod) +int src_verify_params(struct processing_module *mod) { struct sof_ipc_stream_params *params = mod->stream_params; struct comp_data *cd = module_get_private_data(mod); @@ -505,9 +461,9 @@ static int src_verify_params(struct processing_module *mod) return ret; } -static bool src_get_copy_limits(struct comp_data *cd, - struct sof_source *source, - struct sof_sink *sink) +bool src_get_copy_limits(struct comp_data *cd, + struct sof_source *source, + struct sof_sink *sink) { struct src_param *sp; struct src_stage *s1; @@ -549,9 +505,9 @@ static bool src_get_copy_limits(struct comp_data *cd, return true; } -static int src_params_general(struct processing_module *mod, - struct sof_source *source, - struct sof_sink *sink) +int src_params_general(struct processing_module *mod, + struct sof_source *source, + struct sof_sink *sink) { struct comp_data *cd = module_get_private_data(mod); struct comp_dev *dev = mod->dev; @@ -652,9 +608,9 @@ static int src_params_general(struct processing_module *mod, return 0; } -static int src_prepare(struct processing_module *mod, - struct sof_source **sources, int num_of_sources, - struct sof_sink **sinks, int num_of_sinks) +int src_prepare(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks) { int ret; @@ -671,18 +627,18 @@ static int src_prepare(struct processing_module *mod, } -static bool src_is_ready_to_process(struct processing_module *mod, - struct sof_source **sources, int num_of_sources, - struct sof_sink **sinks, int num_of_sinks) +bool src_is_ready_to_process(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks) { struct comp_data *cd = module_get_private_data(mod); return src_get_copy_limits(cd, sources[0], sinks[0]); } -static int src_process(struct processing_module *mod, - struct sof_source **sources, int num_of_sources, - struct sof_sink **sinks, int num_of_sinks) +int src_process(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks) { struct comp_data *cd = module_get_private_data(mod); @@ -697,21 +653,21 @@ static int src_process(struct processing_module *mod, return cd->src_func(cd, sources[0], sinks[0]); } -static int src_set_config(struct processing_module *mod, uint32_t config_id, - enum module_cfg_fragment_position pos, uint32_t data_offset_size, - const uint8_t *fragment, size_t fragment_size, uint8_t *response, - size_t response_size) +int src_set_config(struct processing_module *mod, uint32_t config_id, + enum module_cfg_fragment_position pos, uint32_t data_offset_size, + const uint8_t *fragment, size_t fragment_size, uint8_t *response, + size_t response_size) { return -EINVAL; } -static int src_get_config(struct processing_module *mod, uint32_t config_id, - uint32_t *data_offset_size, uint8_t *fragment, size_t fragment_size) +int src_get_config(struct processing_module *mod, uint32_t config_id, + uint32_t *data_offset_size, uint8_t *fragment, size_t fragment_size) { return -EINVAL; } -static int src_reset(struct processing_module *mod) +int src_reset(struct processing_module *mod) { struct comp_data *cd = module_get_private_data(mod); @@ -723,7 +679,7 @@ static int src_reset(struct processing_module *mod) return 0; } -static int src_free(struct processing_module *mod) +int src_free(struct processing_module *mod) { struct comp_data *cd = module_get_private_data(mod); diff --git a/src/audio/src/src.h b/src/audio/src/src.h index fe2170ab1714..2ead7fa95062 100644 --- a/src/audio/src/src.h +++ b/src/audio/src/src.h @@ -104,7 +104,20 @@ static inline void src_dec_wrap_s16(int16_t **ptr, int16_t *addr, size_t size) } #endif /* CONFIG_FORMAT_S16LE */ -void src_polyphase_reset(struct polyphase_src *src); +static inline void src_state_reset(struct src_state *state) +{ + state->fir_delay_size = 0; + state->out_delay_size = 0; +} + +static inline void src_polyphase_reset(struct polyphase_src *src) +{ + src->number_of_stages = 0; + src->stage1 = NULL; + src->stage2 = NULL; + src_state_reset(&src->state1); + src_state_reset(&src->state2); +} int src_polyphase_init(struct polyphase_src *src, struct src_param *p, int32_t *delay_lines_start); @@ -173,6 +186,39 @@ int src_stream_pcm_source_rate_check(struct ipc_config_src cfg, struct sof_ipc_stream_params *params); #endif /* CONFIG_IPC_MAJOR_4 */ +/* Calculates the needed FIR delay line length */ +static inline int src_fir_delay_length(struct src_stage *s) +{ + return s->subfilter_length + (s->num_of_subfilters - 1) * s->idm + + s->blk_in; +} + +/* Calculates the FIR output delay line length */ +static inline int src_out_delay_length(struct src_stage *s) +{ + return 1 + (s->num_of_subfilters - 1) * s->odm; +} + +/* Returns index of a matching sample rate */ +static inline int src_find_fs(int fs_list[], int list_length, int fs) +{ + int i; + + for (i = 0; i < list_length; i++) { + if (fs_list[i] == fs) + return i; + } + return -EINVAL; +} + +/* Fallback function */ +static inline int src_fallback(struct comp_data *cd, + struct sof_source *source, + struct sof_sink *sink) +{ + return 0; +} + int src_rate_check(const void *spec); int src_set_params(struct processing_module *mod, struct sof_sink *sink); @@ -182,9 +228,45 @@ int src_prepare_general(struct processing_module *mod, struct sof_source *source, struct sof_sink *sink); int src_init(struct processing_module *mod); -int src_fallback(struct comp_data *cd, struct sof_source *source, + +int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, + int nch); +int init_stages(struct src_stage *stage1, struct src_stage *stage2, + struct polyphase_src *src, struct src_param *p, + int n, int32_t *delay_lines_start); +int src_1s(struct comp_data *cd, struct sof_source *source, + struct sof_sink *sink); +int src_copy_sxx(struct comp_data *cd, struct sof_source *source, struct sof_sink *sink); +int src_verify_params(struct processing_module *mod); + +bool src_get_copy_limits(struct comp_data *cd, + struct sof_source *source, + struct sof_sink *sink); +int src_params_general(struct processing_module *mod, + struct sof_source *source, + struct sof_sink *sink); +int src_prepare(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks); +int src_2s(struct comp_data *cd, + struct sof_source *source, struct sof_sink *sink); + +bool src_is_ready_to_process(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks); +int src_process(struct processing_module *mod, + struct sof_source **sources, int num_of_sources, + struct sof_sink **sinks, int num_of_sinks); +int src_set_config(struct processing_module *mod, uint32_t config_id, + enum module_cfg_fragment_position pos, uint32_t data_offset_size, + const uint8_t *fragment, size_t fragment_size, uint8_t *response, + size_t response_size); +int src_get_config(struct processing_module *mod, uint32_t config_id, + uint32_t *data_offset_size, uint8_t *fragment, size_t fragment_size); +int src_free(struct processing_module *mod); +int src_reset(struct processing_module *mod); extern const struct sof_uuid src_uuid; extern struct tr_ctx src_tr; diff --git a/src/audio/src/src_lite.c b/src/audio/src/src_lite.c new file mode 100644 index 000000000000..5b6bf40f832a --- /dev/null +++ b/src/audio/src/src_lite.c @@ -0,0 +1,32 @@ +// SPDX-License-Identifier: BSD-3-Clause +// +// Copyright(c) 2023 Intel Corporation. All rights reserved. +// +// Author: Fabiola Jasinska + +#include +#include "src.h" +#include "src_config.h" + +#define SRC_LITE 1 + +LOG_MODULE_REGISTER(src_lite, CONFIG_SOF_LOG_LEVEL); + +static const struct module_interface src_lite_interface = { + .init = src_init, + .prepare = src_prepare, + .process = src_process, + .is_ready_to_process = src_is_ready_to_process, + .set_configuration = src_set_config, + .get_configuration = src_get_config, + .reset = src_reset, + .free = src_free, +}; + +DECLARE_SOF_RT_UUID("src_lite", src_lite_uuid, 0x33441051, 0x44CD, 0x466A, + 0x83, 0xA3, 0x17, 0x84, 0x78, 0x70, 0x8A, 0xEA); + +DECLARE_TR_CTX(src_lite_tr, SOF_UUID(src_lite_uuid), LOG_LEVEL_INFO); + +DECLARE_MODULE_ADAPTER(src_lite_interface, src_lite_uuid, src_lite_tr); +SOF_MODULE_INIT(src_lite, sys_comp_module_src_lite_interface_init); diff --git a/tools/rimage/config/mtl.toml b/tools/rimage/config/mtl.toml index 453b0df89dbd..d85f797f627e 100644 --- a/tools/rimage/config/mtl.toml +++ b/tools/rimage/config/mtl.toml @@ -57,7 +57,7 @@ name = "ADSPFW" load_offset = "0x40000" [module] -count = 26 +count = 27 [[module.entry]] name = "BRNGUP" uuid = "2B79E4F3-4675-F649-89DF-3BC194A91AEB" @@ -649,3 +649,44 @@ count = 26 # 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, 296, 5000000, 384, 384, 0, 5000, 0] + + # SRC lite module config + [[module.entry]] + name = "SRC_LITE" + uuid = "33441051-44CD-466A-83A3-178478708AEA" + affinity_mask = "0x1" + #instance_count = "10" + domain_types = "0" + load_type = "0" + module_type = "0x1F" + auto_start = "0" + sched_caps = [1, 0x00008000] + + # pin = [dir, type, sample rate, size, container, channel-cfg] + pin = [0, 0, 0xffff, 0xc, 0x8, 0x05ff, + 1, 0, 0xf6c9, 0xc, 0x8, 0x05ff] + + # 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, 12832, 1365500, 0, 0, 0, 1365, 0, + 1, 0, 0, 0, 12832, 2302300, 0, 0, 0, 2302, 0, + 2, 0, 0, 0, 12832, 3218200, 0, 0, 0, 3218, 0, + 3, 0, 0, 0, 12832, 4169700, 0, 0, 0, 4169, 0, + 4, 0, 0, 0, 12832, 5095100, 0, 0, 0, 5095, 0, + 5, 0, 0, 0, 12832, 6014800, 0, 0, 0, 6014, 0, + 6, 0, 0, 0, 12832, 6963500, 0, 0, 0, 6963, 0, + 7, 0, 0, 0, 12832, 7791000, 0, 0, 0, 7791, 0, + 8, 0, 0, 0, 12832, 8843000, 0, 0, 0, 8843, 0, + 9, 0, 0, 0, 12832, 9755100, 0, 0, 0, 9755, 0, + 10, 0, 0, 0, 12832, 10726500, 0, 0, 0, 10726, 0, + 11, 0, 0, 0, 12832, 11624100, 0, 0, 0, 11624, 0, + 12, 0, 0, 0, 12832, 12518700, 0, 0, 0, 12518, 0, + 13, 0, 0, 0, 12832, 13555000, 0, 0, 0, 13555, 0, + 14, 0, 0, 0, 12832, 14144500, 0, 0, 0, 14144, 0, + 15, 0, 0, 0, 12832, 15809800, 0, 0, 0, 15809, 0, + 16, 0, 0, 0, 12832, 16749000, 0, 0, 0, 16749, 0, + 17, 0, 0, 0, 12832, 18433500, 0, 0, 0, 18433, 0, + 18, 0, 0, 0, 12832, 19425900, 0, 0, 0, 19425, 0, + 19, 0, 0, 0, 12832, 20396900, 0, 0, 0, 20396, 0, + 20, 0, 0, 0, 12832, 20881000, 0, 0, 0, 20881, 0, + 21, 0, 0, 0, 12832, 23431000, 0, 0, 0, 23431, 0, + 22, 0, 0, 0, 12832, 30471000, 0, 0, 0, 30471, 0] \ No newline at end of file diff --git a/zephyr/CMakeLists.txt b/zephyr/CMakeLists.txt index 68e110426ea5..37a51de920d9 100644 --- a/zephyr/CMakeLists.txt +++ b/zephyr/CMakeLists.txt @@ -610,6 +610,9 @@ elseif(CONFIG_IPC_MAJOR_4) ) endif() +zephyr_library_sources_ifdef(CONFIG_COMP_SRC_LITE + ${SOF_AUDIO_PATH}/src/src_lite.c +) zephyr_library_sources_ifdef(CONFIG_COMP_BASEFW_IPC4 ${SOF_AUDIO_PATH}/base_fw.c )