From bcc2f05103e537e943642e0b7160bb315e419ef9 Mon Sep 17 00:00:00 2001 From: Guennadi Liakhovetski Date: Fri, 2 Feb 2024 16:45:21 +0100 Subject: [PATCH] src: make coefficients constant Make coefficients and their tables constant. Signed-off-by: Guennadi Liakhovetski --- .../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/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h | 2 +- src/audio/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/audio/src/coef/src_ipc4_int32_2_1_2268_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_2_1_2500_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_2_1_2721_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_2_1_3401_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_2_1_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_2_3_4535_5000.h | 2 +- .../src/coef/src_ipc4_int32_32_21_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_3_1_2268_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_3_1_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_3_2_4535_5000.h | 2 +- src/audio/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 | 2 +- .../src/coef/src_ipc4_int32_40_7_2976_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_4_1_1134_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_4_1_1512_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_4_1_2268_5000.h | 2 +- src/audio/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/audio/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/audio/src/coef/src_ipc4_int32_5_7_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_6_1_1134_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_7_3_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_7_5_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_7_8_1361_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_7_8_2468_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_7_8_2721_5000.h | 2 +- src/audio/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/audio/src/coef/src_ipc4_int32_8_7_1361_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_8_7_2468_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_8_7_2721_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_8_7_4082_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_8_7_4535_5000.h | 2 +- src/audio/src/coef/src_ipc4_int32_table.h | 14 +++++++------- src/audio/src/coef/src_lite_ipc4_int32_table.h | 14 +++++++------- .../src/coef/src_small_int32_1_2_2268_5000.h | 2 +- .../src/coef/src_small_int32_1_2_4535_5000.h | 2 +- .../src/coef/src_small_int32_1_3_2268_5000.h | 2 +- .../src/coef/src_small_int32_1_3_4535_5000.h | 2 +- .../src/coef/src_small_int32_20_21_4167_5000.h | 2 +- .../src/coef/src_small_int32_21_20_4167_5000.h | 2 +- .../src/coef/src_small_int32_2_1_2268_5000.h | 2 +- .../src/coef/src_small_int32_2_1_4535_5000.h | 2 +- .../src/coef/src_small_int32_2_3_4535_5000.h | 2 +- .../src/coef/src_small_int32_3_1_2268_5000.h | 2 +- .../src/coef/src_small_int32_3_1_4535_5000.h | 2 +- .../src/coef/src_small_int32_3_2_4535_5000.h | 2 +- .../src/coef/src_small_int32_3_4_4535_5000.h | 2 +- .../src/coef/src_small_int32_4_3_4535_5000.h | 2 +- .../src/coef/src_small_int32_4_5_4535_5000.h | 2 +- .../src/coef/src_small_int32_5_4_4535_5000.h | 2 +- .../src/coef/src_small_int32_5_6_4354_5000.h | 2 +- .../src/coef/src_small_int32_6_5_4354_5000.h | 2 +- .../src/coef/src_small_int32_7_8_4535_5000.h | 2 +- .../src/coef/src_small_int32_8_7_4535_5000.h | 2 +- src/audio/src/coef/src_small_int32_table.h | 15 ++++++++------- .../src/coef/src_std_int32_10_21_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_1_2_2268_5000.h | 2 +- src/audio/src/coef/src_std_int32_1_2_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_1_3_2268_5000.h | 2 +- src/audio/src/coef/src_std_int32_1_3_4535_5000.h | 2 +- .../src/coef/src_std_int32_20_21_4167_5000.h | 2 +- src/audio/src/coef/src_std_int32_20_7_2976_5000.h | 2 +- .../src/coef/src_std_int32_21_20_4167_5000.h | 2 +- .../src/coef/src_std_int32_21_40_3968_5000.h | 2 +- .../src/coef/src_std_int32_21_80_3968_5000.h | 2 +- src/audio/src/coef/src_std_int32_2_1_2268_5000.h | 2 +- src/audio/src/coef/src_std_int32_2_1_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_2_3_4535_5000.h | 2 +- .../src/coef/src_std_int32_32_21_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_3_1_2268_5000.h | 2 +- src/audio/src/coef/src_std_int32_3_1_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_3_2_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_3_4_4535_5000.h | 2 +- .../src/coef/src_std_int32_40_21_3968_5000.h | 2 +- src/audio/src/coef/src_std_int32_4_3_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_4_5_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_5_4_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_5_6_4354_5000.h | 2 +- src/audio/src/coef/src_std_int32_5_7_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_6_5_4354_5000.h | 2 +- src/audio/src/coef/src_std_int32_7_8_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_8_21_3239_5000.h | 2 +- src/audio/src/coef/src_std_int32_8_7_2468_5000.h | 2 +- src/audio/src/coef/src_std_int32_8_7_4535_5000.h | 2 +- src/audio/src/coef/src_std_int32_table.h | 15 ++++++++------- src/audio/src/coef/src_tiny_int16_1_2_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_1_3_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_1_6_1814_5000.h | 2 +- .../src/coef/src_tiny_int16_20_21_1667_5000.h | 2 +- .../src/coef/src_tiny_int16_21_20_1667_5000.h | 2 +- .../src/coef/src_tiny_int16_24_25_1814_5000.h | 2 +- .../src/coef/src_tiny_int16_25_24_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_2_1_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_2_3_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_3_1_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_3_2_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_6_1_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_7_8_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_8_7_1814_5000.h | 2 +- src/audio/src/coef/src_tiny_int16_table.h | 14 +++++++------- src/audio/src/src.c | 14 +++++++------- src/audio/src/src.h | 14 +++++++------- src/audio/src/src_generic.c | 4 ++-- src/audio/src/src_hifi2ep.c | 4 ++-- src/audio/src/src_hifi3.c | 4 ++-- src/audio/src/src_hifi4.c | 4 ++-- 161 files changed, 209 insertions(+), 207 deletions(-) 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 48030954faa5..68f4da2754b6 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 @@ -492,7 +492,7 @@ const int32_t src_int32_10_21_2500_5000_fir[480] = { }; -struct src_stage src_int32_10_21_2500_5000 = { +const struct src_stage src_int32_10_21_2500_5000 = { 2, 1, 10, 48, 480, 21, 10, 0, 1, src_int32_10_21_2500_5000_fir}; /** \endcond */ 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 c0e8973896ad..ab407ec320bf 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 @@ -652,7 +652,7 @@ const int32_t src_int32_10_21_3455_5000_fir[640] = { }; -struct src_stage src_int32_10_21_3455_5000 = { +const struct src_stage src_int32_10_21_3455_5000 = { 2, 1, 10, 64, 640, 21, 10, 0, 1, src_int32_10_21_3455_5000_fir}; /** \endcond */ 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 86d846a7c806..ba233961c259 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 @@ -2332,7 +2332,7 @@ const int32_t src_int32_10_21_4535_5000_fir[2320] = { }; -struct src_stage src_int32_10_21_4535_5000 = { +const struct src_stage src_int32_10_21_4535_5000 = { 2, 1, 10, 232, 2320, 21, 10, 0, 1, src_int32_10_21_4535_5000_fir}; /** \endcond */ 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 b8ce8872260a..b310c79e02da 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 @@ -1092,7 +1092,7 @@ const int32_t src_int32_10_9_4535_5000_fir[1080] = { }; -struct src_stage src_int32_10_9_4535_5000 = { +const struct src_stage src_int32_10_9_4535_5000 = { 8, 9, 10, 108, 1080, 9, 10, 0, 0, src_int32_10_9_4535_5000_fir}; /** \endcond */ 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 7afecdab5e9a..9203f87a969b 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 @@ -1484,7 +1484,7 @@ const int32_t src_int32_16_21_4319_5000_fir[1472] = { }; -struct src_stage src_int32_16_21_4319_5000 = { +const struct src_stage src_int32_16_21_4319_5000 = { 17, 13, 16, 92, 1472, 21, 16, 0, 0, src_int32_16_21_4319_5000_fir}; /** \endcond */ 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 f23f95bf5f36..0147278ddb0c 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 @@ -2060,7 +2060,7 @@ const int32_t src_int32_16_21_4535_5000_fir[2048] = { }; -struct src_stage src_int32_16_21_4535_5000 = { +const struct src_stage src_int32_16_21_4535_5000 = { 17, 13, 16, 128, 2048, 21, 16, 0, 0, src_int32_16_21_4535_5000_fir}; /** \endcond */ 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 a28a8804180f..48065eafcc45 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 @@ -908,7 +908,7 @@ const int32_t src_int32_16_7_4082_5000_fir[896] = { }; -struct src_stage src_int32_16_7_4082_5000 = { +const struct src_stage src_int32_16_7_4082_5000 = { 3, 7, 16, 56, 896, 7, 16, 0, 0, src_int32_16_7_4082_5000_fir}; /** \endcond */ 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 6439054b1a53..2e84555a68cf 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 @@ -47,7 +47,7 @@ const int32_t src_int32_1_2_2268_5000_fir[36] = { }; -struct src_stage src_int32_1_2_2268_5000 = { +const struct src_stage src_int32_1_2_2268_5000 = { 1, 0, 1, 36, 36, 2, 1, 0, 1, src_int32_1_2_2268_5000_fir}; /** \endcond */ 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 5e619afffb81..c5be9d9f8efb 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 @@ -52,7 +52,7 @@ const int32_t src_int32_1_2_2500_5000_fir[40] = { }; -struct src_stage src_int32_1_2_2500_5000 = { +const struct src_stage src_int32_1_2_2500_5000 = { 1, 0, 1, 40, 40, 2, 1, 0, 1, src_int32_1_2_2500_5000_fir}; /** \endcond */ 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 c93526f5354a..79645c3d88ef 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 @@ -56,7 +56,7 @@ const int32_t src_int32_1_2_2721_5000_fir[44] = { }; -struct src_stage src_int32_1_2_2721_5000 = { +const struct src_stage src_int32_1_2_2721_5000 = { 1, 0, 1, 44, 44, 2, 1, 0, 1, src_int32_1_2_2721_5000_fir}; /** \endcond */ 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 67b9e495a922..07599b047405 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 @@ -72,7 +72,7 @@ const int32_t src_int32_1_2_3401_5000_fir[60] = { }; -struct src_stage src_int32_1_2_3401_5000 = { +const struct src_stage src_int32_1_2_3401_5000 = { 1, 0, 1, 60, 60, 2, 1, 0, 1, src_int32_1_2_3401_5000_fir}; /** \endcond */ 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 154fa629e140..4e390ba3e738 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 @@ -96,7 +96,7 @@ const int32_t src_int32_1_2_3887_5000_fir[84] = { }; -struct src_stage src_int32_1_2_3887_5000 = { +const struct src_stage src_int32_1_2_3887_5000 = { 1, 0, 1, 84, 84, 2, 1, 0, 1, src_int32_1_2_3887_5000_fir}; /** \endcond */ 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 eed23b13668e..c2784674618e 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 @@ -204,7 +204,7 @@ const int32_t src_int32_1_2_4535_5000_fir[192] = { }; -struct src_stage src_int32_1_2_4535_5000 = { +const struct src_stage src_int32_1_2_4535_5000 = { 1, 0, 1, 192, 192, 2, 1, 0, 1, src_int32_1_2_4535_5000_fir}; /** \endcond */ 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 5a455da33297..d6c6bc2684fd 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 @@ -64,7 +64,7 @@ const int32_t src_int32_1_3_2268_5000_fir[52] = { }; -struct src_stage src_int32_1_3_2268_5000 = { +const struct src_stage src_int32_1_3_2268_5000 = { 1, 0, 1, 52, 52, 3, 1, 0, 2, src_int32_1_3_2268_5000_fir}; /** \endcond */ 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 a22d7c3da8e1..dc77f5e04e62 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 @@ -272,7 +272,7 @@ const int32_t src_int32_1_3_4535_5000_fir[260] = { }; -struct src_stage src_int32_1_3_4535_5000 = { +const struct src_stage src_int32_1_3_4535_5000 = { 1, 0, 1, 260, 260, 3, 1, 0, 1, src_int32_1_3_4535_5000_fir}; /** \endcond */ 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 5426a9ff0404..2b0e2fbf80bb 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 @@ -64,7 +64,7 @@ const int32_t src_int32_1_4_1512_5000_fir[52] = { }; -struct src_stage src_int32_1_4_1512_5000 = { +const struct src_stage src_int32_1_4_1512_5000 = { 1, 0, 1, 52, 52, 4, 1, 0, 2, src_int32_1_4_1512_5000_fir}; /** \endcond */ 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 d375e6625f1f..d62a957104c1 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 @@ -72,7 +72,7 @@ const int32_t src_int32_1_4_2268_5000_fir[60] = { }; -struct src_stage src_int32_1_4_2268_5000 = { +const struct src_stage src_int32_1_4_2268_5000 = { 1, 0, 1, 60, 60, 4, 1, 0, 2, src_int32_1_4_2268_5000_fir}; /** \endcond */ 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 9522110b2d66..25c9722c8ec0 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 @@ -344,7 +344,7 @@ const int32_t src_int32_1_4_4535_5000_fir[332] = { }; -struct src_stage src_int32_1_4_4535_5000 = { +const struct src_stage src_int32_1_4_4535_5000 = { 1, 0, 1, 332, 332, 4, 1, 0, 2, src_int32_1_4_4535_5000_fir}; /** \endcond */ 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 02afd78663a4..2bfd926953e0 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 @@ -80,7 +80,7 @@ const int32_t src_int32_1_6_1134_5000_fir[68] = { }; -struct src_stage src_int32_1_6_1134_5000 = { +const struct src_stage src_int32_1_6_1134_5000 = { 1, 0, 1, 68, 68, 6, 1, 0, 3, src_int32_1_6_1134_5000_fir}; /** \endcond */ 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 dfd8d462b9ec..06fbcda00496 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 @@ -332,7 +332,7 @@ const int32_t src_int32_20_21_1250_5000_fir[320] = { }; -struct src_stage src_int32_20_21_1250_5000 = { +const struct src_stage src_int32_20_21_1250_5000 = { 1, 1, 20, 16, 320, 21, 20, 0, 0, src_int32_20_21_1250_5000_fir}; /** \endcond */ 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 021c9572342d..852299832131 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 @@ -572,7 +572,7 @@ const int32_t src_int32_20_21_2500_5000_fir[560] = { }; -struct src_stage src_int32_20_21_2500_5000 = { +const struct src_stage src_int32_20_21_2500_5000 = { 1, 1, 20, 28, 560, 21, 20, 0, 0, src_int32_20_21_2500_5000_fir}; /** \endcond */ 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 09a71eb3dadd..f7239fe395d4 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 @@ -652,7 +652,7 @@ const int32_t src_int32_20_21_3125_5000_fir[640] = { }; -struct src_stage src_int32_20_21_3125_5000 = { +const struct src_stage src_int32_20_21_3125_5000 = { 1, 1, 20, 32, 640, 21, 20, 0, 0, src_int32_20_21_3125_5000_fir}; /** \endcond */ 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 5eb7c718b39c..3f3c7940188c 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 @@ -1212,7 +1212,7 @@ const int32_t src_int32_20_21_4167_5000_fir[1200] = { }; -struct src_stage src_int32_20_21_4167_5000 = { +const struct src_stage src_int32_20_21_4167_5000 = { 1, 1, 20, 60, 1200, 21, 20, 0, 0, src_int32_20_21_4167_5000_fir}; /** \endcond */ 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 75e59fa53554..63798beaaa1b 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 @@ -2092,7 +2092,7 @@ const int32_t src_int32_20_21_4535_5000_fir[2080] = { }; -struct src_stage src_int32_20_21_4535_5000 = { +const struct src_stage src_int32_20_21_4535_5000 = { 1, 1, 20, 104, 2080, 21, 20, 0, 0, src_int32_20_21_4535_5000_fir}; /** \endcond */ 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 0e076dfa6b22..f8af9b953179 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 @@ -572,7 +572,7 @@ const int32_t src_int32_20_7_2976_5000_fir[560] = { }; -struct src_stage src_int32_20_7_2976_5000 = { +const struct src_stage src_int32_20_7_2976_5000 = { 1, 3, 20, 28, 560, 7, 20, 0, 0, src_int32_20_7_2976_5000_fir}; /** \endcond */ 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 8e59eac928a1..c48b3af39091 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 @@ -516,7 +516,7 @@ const int32_t src_int32_21_10_2500_5000_fir[504] = { }; -struct src_stage src_int32_21_10_2500_5000 = { +const struct src_stage src_int32_21_10_2500_5000 = { 9, 19, 21, 24, 504, 10, 21, 0, 0, src_int32_21_10_2500_5000_fir}; /** \endcond */ 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 2d3f3b0c4a22..8d23798b3759 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 @@ -768,7 +768,7 @@ const int32_t src_int32_21_10_3455_5000_fir[756] = { }; -struct src_stage src_int32_21_10_3455_5000 = { +const struct src_stage src_int32_21_10_3455_5000 = { 9, 19, 21, 36, 756, 10, 21, 0, 0, src_int32_21_10_3455_5000_fir}; /** \endcond */ 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 ef37e5b74280..37a53fc8d599 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 @@ -2532,7 +2532,7 @@ const int32_t src_int32_21_10_4535_5000_fir[2520] = { }; -struct src_stage src_int32_21_10_4535_5000 = { +const struct src_stage src_int32_21_10_4535_5000 = { 9, 19, 21, 120, 2520, 10, 21, 0, 0, src_int32_21_10_4535_5000_fir}; /** \endcond */ 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 be79e187c8a2..872a73530723 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 @@ -1608,7 +1608,7 @@ const int32_t src_int32_21_16_4319_5000_fir[1596] = { }; -struct src_stage src_int32_21_16_4319_5000 = { +const struct src_stage src_int32_21_16_4319_5000 = { 3, 4, 21, 76, 1596, 16, 21, 0, 0, src_int32_21_16_4319_5000_fir}; /** \endcond */ 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 9afb6408f986..282cb891f6b6 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 @@ -2448,7 +2448,7 @@ const int32_t src_int32_21_16_4535_5000_fir[2436] = { }; -struct src_stage src_int32_21_16_4535_5000 = { +const struct src_stage src_int32_21_16_4535_5000 = { 3, 4, 21, 116, 2436, 16, 21, 0, 0, src_int32_21_16_4535_5000_fir}; /** \endcond */ 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 a420745baa54..398b36ed63bc 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 @@ -432,7 +432,7 @@ const int32_t src_int32_21_20_1250_5000_fir[420] = { }; -struct src_stage src_int32_21_20_1250_5000 = { +const struct src_stage src_int32_21_20_1250_5000 = { 19, 20, 21, 20, 420, 20, 21, 0, 0, src_int32_21_20_1250_5000_fir}; /** \endcond */ 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 87c0f8a79e01..02f37566a0da 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 @@ -516,7 +516,7 @@ const int32_t src_int32_21_20_2500_5000_fir[504] = { }; -struct src_stage src_int32_21_20_2500_5000 = { +const struct src_stage src_int32_21_20_2500_5000 = { 19, 20, 21, 24, 504, 20, 21, 0, 0, src_int32_21_20_2500_5000_fir}; /** \endcond */ 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 692597e7093e..aefd8320cd0e 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 @@ -684,7 +684,7 @@ const int32_t src_int32_21_20_3125_5000_fir[672] = { }; -struct src_stage src_int32_21_20_3125_5000 = { +const struct src_stage src_int32_21_20_3125_5000 = { 19, 20, 21, 32, 672, 20, 21, 0, 0, src_int32_21_20_3125_5000_fir}; /** \endcond */ 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 a5125e18b35f..4317a2883a87 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 @@ -1272,7 +1272,7 @@ const int32_t src_int32_21_20_4167_5000_fir[1260] = { }; -struct src_stage src_int32_21_20_4167_5000 = { +const struct src_stage src_int32_21_20_4167_5000 = { 19, 20, 21, 60, 1260, 20, 21, 0, 0, src_int32_21_20_4167_5000_fir}; /** \endcond */ 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 85f20e60c536..237fb2df4a0a 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 @@ -2280,7 +2280,7 @@ const int32_t src_int32_21_20_4535_5000_fir[2268] = { }; -struct src_stage src_int32_21_20_4535_5000 = { +const struct src_stage src_int32_21_20_4535_5000 = { 19, 20, 21, 108, 2268, 20, 21, 0, 0, src_int32_21_20_4535_5000_fir}; /** \endcond */ 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 d4a99940d49c..6d20ef006d46 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 @@ -684,7 +684,7 @@ const int32_t src_int32_21_2_3239_5000_fir[672] = { }; -struct src_stage src_int32_21_2_3239_5000 = { +const struct src_stage src_int32_21_2_3239_5000 = { 1, 11, 21, 32, 672, 2, 21, 0, 0, src_int32_21_2_3239_5000_fir}; /** \endcond */ 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 838aeab0b802..91fb3f1219e7 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 @@ -3624,7 +3624,7 @@ const int32_t src_int32_21_32_4535_5000_fir[3612] = { }; -struct src_stage src_int32_21_32_4535_5000 = { +const struct src_stage src_int32_21_32_4535_5000 = { 3, 2, 21, 172, 3612, 32, 21, 0, 0, src_int32_21_32_4535_5000_fir}; /** \endcond */ 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 bcefb4d03299..f6349fc44f51 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 @@ -936,7 +936,7 @@ const int32_t src_int32_21_40_2381_5000_fir[924] = { }; -struct src_stage src_int32_21_40_2381_5000 = { +const struct src_stage src_int32_21_40_2381_5000 = { 19, 10, 21, 44, 924, 40, 21, 0, 1, src_int32_21_40_2381_5000_fir}; /** \endcond */ 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 ce9e0cb6ddb1..e21fd3d7192d 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 @@ -1692,7 +1692,7 @@ const int32_t src_int32_21_40_3968_5000_fir[1680] = { }; -struct src_stage src_int32_21_40_3968_5000 = { +const struct src_stage src_int32_21_40_3968_5000 = { 19, 10, 21, 80, 1680, 40, 21, 0, 1, src_int32_21_40_3968_5000_fir}; /** \endcond */ 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 de8beea74d01..050c5b36d756 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 @@ -348,7 +348,7 @@ const int32_t src_int32_21_4_1080_5000_fir[336] = { }; -struct src_stage src_int32_21_4_1080_5000 = { +const struct src_stage src_int32_21_4_1080_5000 = { 3, 16, 21, 16, 336, 4, 21, 0, 0, src_int32_21_4_1080_5000_fir}; /** \endcond */ 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 5b8aaf04755c..3a1ef9fec020 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 @@ -684,7 +684,7 @@ const int32_t src_int32_21_4_3239_5000_fir[672] = { }; -struct src_stage src_int32_21_4_3239_5000 = { +const struct src_stage src_int32_21_4_3239_5000 = { 3, 16, 21, 32, 672, 4, 21, 0, 0, src_int32_21_4_3239_5000_fir}; /** \endcond */ 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 0f6a4110f090..06d41632b7ae 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 @@ -432,7 +432,7 @@ const int32_t src_int32_21_5_1728_5000_fir[420] = { }; -struct src_stage src_int32_21_5_1728_5000 = { +const struct src_stage src_int32_21_5_1728_5000 = { 4, 17, 21, 20, 420, 5, 21, 0, 0, src_int32_21_5_1728_5000_fir}; /** \endcond */ 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 e7e0f09a3d8f..a8939b4eaef5 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 @@ -2196,7 +2196,7 @@ const int32_t src_int32_21_5_4535_5000_fir[2184] = { }; -struct src_stage src_int32_21_5_4535_5000 = { +const struct src_stage src_int32_21_5_4535_5000 = { 4, 17, 21, 104, 2184, 5, 21, 0, 0, src_int32_21_5_4535_5000_fir}; /** \endcond */ 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 71ed1ba54db3..070002c98029 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 @@ -3372,7 +3372,7 @@ const int32_t src_int32_21_80_3968_5000_fir[3360] = { }; -struct src_stage src_int32_21_80_3968_5000 = { +const struct src_stage src_int32_21_80_3968_5000 = { 19, 5, 21, 160, 3360, 80, 21, 0, 2, src_int32_21_80_3968_5000_fir}; /** \endcond */ 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 54ccaae7be81..01542a97df95 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 @@ -432,7 +432,7 @@ const int32_t src_int32_21_8_2160_5000_fir[420] = { }; -struct src_stage src_int32_21_8_2160_5000 = { +const struct src_stage src_int32_21_8_2160_5000 = { 3, 8, 21, 20, 420, 8, 21, 0, 0, src_int32_21_8_2160_5000_fir}; /** \endcond */ 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 3c60f57466f6..8e9e1e4819c7 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 @@ -684,7 +684,7 @@ const int32_t src_int32_21_8_3239_5000_fir[672] = { }; -struct src_stage src_int32_21_8_3239_5000 = { +const struct src_stage src_int32_21_8_3239_5000 = { 3, 8, 21, 32, 672, 8, 21, 0, 0, src_int32_21_8_3239_5000_fir}; /** \endcond */ 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 77061aec771d..c81f05c65f88 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 @@ -2448,7 +2448,7 @@ const int32_t src_int32_21_8_4535_5000_fir[2436] = { }; -struct src_stage src_int32_21_8_4535_5000 = { +const struct src_stage src_int32_21_8_4535_5000 = { 3, 8, 21, 116, 2436, 8, 21, 0, 0, src_int32_21_8_4535_5000_fir}; /** \endcond */ 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 5278f76504fd..ec081833702a 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 @@ -60,7 +60,7 @@ const int32_t src_int32_2_1_2268_5000_fir[48] = { }; -struct src_stage src_int32_2_1_2268_5000 = { +const struct src_stage src_int32_2_1_2268_5000 = { 0, 1, 2, 24, 48, 1, 2, 0, 0, src_int32_2_1_2268_5000_fir}; /** \endcond */ 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 ccd0fce5856c..2c55c9efbb70 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 @@ -52,7 +52,7 @@ const int32_t src_int32_2_1_2500_5000_fir[40] = { }; -struct src_stage src_int32_2_1_2500_5000 = { +const struct src_stage src_int32_2_1_2500_5000 = { 0, 1, 2, 20, 40, 1, 2, 0, 0, src_int32_2_1_2500_5000_fir}; /** \endcond */ 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 eaa8f4c38814..226ca7956126 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 @@ -60,7 +60,7 @@ const int32_t src_int32_2_1_2721_5000_fir[48] = { }; -struct src_stage src_int32_2_1_2721_5000 = { +const struct src_stage src_int32_2_1_2721_5000 = { 0, 1, 2, 24, 48, 1, 2, 0, 0, src_int32_2_1_2721_5000_fir}; /** \endcond */ 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 93afa72dc538..ad5c2caeeb9e 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 @@ -84,7 +84,7 @@ const int32_t src_int32_2_1_3401_5000_fir[72] = { }; -struct src_stage src_int32_2_1_3401_5000 = { +const struct src_stage src_int32_2_1_3401_5000 = { 0, 1, 2, 36, 72, 1, 2, 0, 0, src_int32_2_1_3401_5000_fir}; /** \endcond */ 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 baf8f5fb4cfd..87976999dd41 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 @@ -252,7 +252,7 @@ const int32_t src_int32_2_1_4535_5000_fir[240] = { }; -struct src_stage src_int32_2_1_4535_5000 = { +const struct src_stage src_int32_2_1_4535_5000 = { 0, 1, 2, 120, 240, 1, 2, 0, 0, src_int32_2_1_4535_5000_fir}; /** \endcond */ 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 9adf487a73be..aba4e7f9558b 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 @@ -276,7 +276,7 @@ const int32_t src_int32_2_3_4535_5000_fir[264] = { }; -struct src_stage src_int32_2_3_4535_5000 = { +const struct src_stage src_int32_2_3_4535_5000 = { 1, 1, 2, 132, 264, 3, 2, 0, 0, src_int32_2_3_4535_5000_fir}; /** \endcond */ 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 89c7e885a064..91d7db784e7b 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 @@ -3852,7 +3852,7 @@ const int32_t src_int32_32_21_4535_5000_fir[3840] = { }; -struct src_stage src_int32_32_21_4535_5000 = { +const struct src_stage src_int32_32_21_4535_5000 = { 19, 29, 32, 120, 3840, 21, 32, 0, 0, src_int32_32_21_4535_5000_fir}; /** \endcond */ 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 02ac3227cec4..304941cd20e4 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 @@ -84,7 +84,7 @@ const int32_t src_int32_3_1_2268_5000_fir[72] = { }; -struct src_stage src_int32_3_1_2268_5000 = { +const struct src_stage src_int32_3_1_2268_5000 = { 0, 1, 3, 24, 72, 1, 3, 0, 0, src_int32_3_1_2268_5000_fir}; /** \endcond */ 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 6f3af03b34fb..202fb63137df 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 @@ -348,7 +348,7 @@ const int32_t src_int32_3_1_4535_5000_fir[336] = { }; -struct src_stage src_int32_3_1_4535_5000 = { +const struct src_stage src_int32_3_1_4535_5000 = { 0, 1, 3, 112, 336, 1, 3, 0, 0, src_int32_3_1_4535_5000_fir}; /** \endcond */ 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 7b528ca29668..05dc006e0d15 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 @@ -336,7 +336,7 @@ const int32_t src_int32_3_2_4535_5000_fir[324] = { }; -struct src_stage src_int32_3_2_4535_5000 = { +const struct src_stage src_int32_3_2_4535_5000 = { 1, 2, 3, 108, 324, 2, 3, 0, 0, src_int32_3_2_4535_5000_fir}; /** \endcond */ 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 87183cbf7fab..dfabf2935eda 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 @@ -372,7 +372,7 @@ const int32_t src_int32_3_4_4535_5000_fir[360] = { }; -struct src_stage src_int32_3_4_4535_5000 = { +const struct src_stage src_int32_3_4_4535_5000 = { 1, 1, 3, 120, 360, 4, 3, 0, 0, src_int32_3_4_4535_5000_fir}; /** \endcond */ 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 5a0751a569e6..2d52d62e302b 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 @@ -972,7 +972,7 @@ const int32_t src_int32_40_21_2381_5000_fir[960] = { }; -struct src_stage src_int32_40_21_2381_5000 = { +const struct src_stage src_int32_40_21_2381_5000 = { 11, 21, 40, 24, 960, 21, 40, 0, 0, src_int32_40_21_2381_5000_fir}; /** \endcond */ 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 6df84d8ec71b..e27e7ac6bd0b 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 @@ -1132,7 +1132,7 @@ const int32_t src_int32_40_21_2976_5000_fir[1120] = { }; -struct src_stage src_int32_40_21_2976_5000 = { +const struct src_stage src_int32_40_21_2976_5000 = { 11, 21, 40, 28, 1120, 21, 40, 0, 0, src_int32_40_21_2976_5000_fir}; /** \endcond */ 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 eb417efac43f..3c8b825e3fab 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 @@ -2091,7 +2091,7 @@ const int32_t src_int32_40_21_3968_5000_fir[2080] = { }; -struct src_stage src_int32_40_21_3968_5000 = { +const struct src_stage src_int32_40_21_3968_5000 = { 11, 21, 40, 52, 2080, 21, 40, 0, 0, src_int32_40_21_3968_5000_fir}; /** \endcond */ 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 ec29d256dc23..e9822c980327 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 @@ -1132,7 +1132,7 @@ const int32_t src_int32_40_7_2976_5000_fir[1120] = { }; -struct src_stage src_int32_40_7_2976_5000 = { +const struct src_stage src_int32_40_7_2976_5000 = { 4, 23, 40, 28, 1120, 7, 40, 0, 0, src_int32_40_7_2976_5000_fir}; /** \endcond */ 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 94dc4fe2d061..a994daff4d69 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 @@ -76,7 +76,7 @@ const int32_t src_int32_4_1_1134_5000_fir[64] = { }; -struct src_stage src_int32_4_1_1134_5000 = { +const struct src_stage src_int32_4_1_1134_5000 = { 0, 1, 4, 16, 64, 1, 4, 0, 0, src_int32_4_1_1134_5000_fir}; /** \endcond */ 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 d24439378e7d..1a56d51890a1 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 @@ -76,7 +76,7 @@ const int32_t src_int32_4_1_1512_5000_fir[64] = { }; -struct src_stage src_int32_4_1_1512_5000 = { +const struct src_stage src_int32_4_1_1512_5000 = { 0, 1, 4, 16, 64, 1, 4, 0, 0, src_int32_4_1_1512_5000_fir}; /** \endcond */ 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 6debcd407b01..382dfd1e968d 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 @@ -92,7 +92,7 @@ const int32_t src_int32_4_1_2268_5000_fir[80] = { }; -struct src_stage src_int32_4_1_2268_5000 = { +const struct src_stage src_int32_4_1_2268_5000 = { 0, 1, 4, 20, 80, 1, 4, 0, 0, src_int32_4_1_2268_5000_fir}; /** \endcond */ 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 c54bcbaec041..1dd48f75aebf 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 @@ -428,7 +428,7 @@ const int32_t src_int32_4_1_4535_5000_fir[416] = { }; -struct src_stage src_int32_4_1_4535_5000 = { +const struct src_stage src_int32_4_1_4535_5000 = { 0, 1, 4, 104, 416, 1, 4, 0, 0, src_int32_4_1_4535_5000_fir}; /** \endcond */ 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 9087729b2c20..2f4c61a61a47 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 @@ -236,7 +236,7 @@ const int32_t src_int32_4_21_1080_5000_fir[224] = { }; -struct src_stage src_int32_4_21_1080_5000 = { +const struct src_stage src_int32_4_21_1080_5000 = { 5, 1, 4, 56, 224, 21, 4, 0, 3, src_int32_4_21_1080_5000_fir}; /** \endcond */ 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 8bccc923b22b..07ab1f288112 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 @@ -524,7 +524,7 @@ const int32_t src_int32_4_21_3239_5000_fir[512] = { }; -struct src_stage src_int32_4_21_3239_5000 = { +const struct src_stage src_int32_4_21_3239_5000 = { 5, 1, 4, 128, 512, 21, 4, 0, 2, src_int32_4_21_3239_5000_fir}; /** \endcond */ 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 0ec9006187bc..cc1908b345ae 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 @@ -444,7 +444,7 @@ const int32_t src_int32_4_3_4535_5000_fir[432] = { }; -struct src_stage src_int32_4_3_4535_5000 = { +const struct src_stage src_int32_4_3_4535_5000 = { 2, 3, 4, 108, 432, 3, 4, 0, 0, src_int32_4_3_4535_5000_fir}; /** \endcond */ 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 6996b1b22e27..cef6aaca9398 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 @@ -332,7 +332,7 @@ const int32_t src_int32_5_21_1728_5000_fir[320] = { }; -struct src_stage src_int32_5_21_1728_5000 = { +const struct src_stage src_int32_5_21_1728_5000 = { 4, 1, 5, 64, 320, 21, 5, 0, 2, src_int32_5_21_1728_5000_fir}; /** \endcond */ 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 e6a61dde3ab1..f62ab19e18cc 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 @@ -1752,7 +1752,7 @@ const int32_t src_int32_5_21_4535_5000_fir[1740] = { }; -struct src_stage src_int32_5_21_4535_5000 = { +const struct src_stage src_int32_5_21_4535_5000 = { 4, 1, 5, 348, 1740, 21, 5, 0, 2, src_int32_5_21_4535_5000_fir}; /** \endcond */ 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 a53184414f6a..ae4b3cdd85b4 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 @@ -692,7 +692,7 @@ const int32_t src_int32_5_7_4535_5000_fir[680] = { }; -struct src_stage src_int32_5_7_4535_5000 = { +const struct src_stage src_int32_5_7_4535_5000 = { 4, 3, 5, 136, 680, 7, 5, 0, 0, src_int32_5_7_4535_5000_fir}; /** \endcond */ 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 0a0fdc47204b..dd570ca55756 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 @@ -108,7 +108,7 @@ const int32_t src_int32_6_1_1134_5000_fir[96] = { }; -struct src_stage src_int32_6_1_1134_5000 = { +const struct src_stage src_int32_6_1_1134_5000 = { 0, 1, 6, 16, 96, 1, 6, 0, 0, src_int32_6_1_1134_5000_fir}; /** \endcond */ 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 182a13ff7da8..7775f3f3a3de 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 @@ -740,7 +740,7 @@ const int32_t src_int32_7_3_4535_5000_fir[728] = { }; -struct src_stage src_int32_7_3_4535_5000 = { +const struct src_stage src_int32_7_3_4535_5000 = { 2, 5, 7, 104, 728, 3, 7, 0, 0, src_int32_7_3_4535_5000_fir}; /** \endcond */ 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 9892f3419692..bd66c57a6cbe 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 @@ -824,7 +824,7 @@ const int32_t src_int32_7_5_4535_5000_fir[812] = { }; -struct src_stage src_int32_7_5_4535_5000 = { +const struct src_stage src_int32_7_5_4535_5000 = { 2, 3, 7, 116, 812, 5, 7, 0, 0, src_int32_7_5_4535_5000_fir}; /** \endcond */ 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 caa97de96c8a..1d8cc19d5012 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 @@ -152,7 +152,7 @@ const int32_t src_int32_7_8_1361_5000_fir[140] = { }; -struct src_stage src_int32_7_8_1361_5000 = { +const struct src_stage src_int32_7_8_1361_5000 = { 1, 1, 7, 20, 140, 8, 7, 0, 0, src_int32_7_8_1361_5000_fir}; /** \endcond */ 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 f47683dadc66..9cea2bb95b73 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 @@ -208,7 +208,7 @@ const int32_t src_int32_7_8_2468_5000_fir[196] = { }; -struct src_stage src_int32_7_8_2468_5000 = { +const struct src_stage src_int32_7_8_2468_5000 = { 1, 1, 7, 28, 196, 8, 7, 0, 0, src_int32_7_8_2468_5000_fir}; /** \endcond */ 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 1d53d3f887c1..53cf62ce2671 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 @@ -236,7 +236,7 @@ const int32_t src_int32_7_8_2721_5000_fir[224] = { }; -struct src_stage src_int32_7_8_2721_5000 = { +const struct src_stage src_int32_7_8_2721_5000 = { 1, 1, 7, 32, 224, 8, 7, 0, 0, src_int32_7_8_2721_5000_fir}; /** \endcond */ 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 afbc84f69fb1..7569357f1d93 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 @@ -852,7 +852,7 @@ const int32_t src_int32_7_8_4535_5000_fir[840] = { }; -struct src_stage src_int32_7_8_4535_5000 = { +const struct src_stage src_int32_7_8_4535_5000 = { 1, 1, 7, 120, 840, 8, 7, 0, 0, src_int32_7_8_4535_5000_fir}; /** \endcond */ 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 a8db0edae0f1..eca88d5ad5ff 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 @@ -396,7 +396,7 @@ const int32_t src_int32_8_21_2160_5000_fir[384] = { }; -struct src_stage src_int32_8_21_2160_5000 = { +const struct src_stage src_int32_8_21_2160_5000 = { 13, 5, 8, 48, 384, 21, 8, 0, 1, src_int32_8_21_2160_5000_fir}; /** \endcond */ 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 6c94c2eb5b1f..0d2e11ad7870 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 @@ -556,7 +556,7 @@ const int32_t src_int32_8_21_3239_5000_fir[544] = { }; -struct src_stage src_int32_8_21_3239_5000 = { +const struct src_stage src_int32_8_21_3239_5000 = { 13, 5, 8, 68, 544, 21, 8, 0, 1, src_int32_8_21_3239_5000_fir}; /** \endcond */ 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 6ed9f654954f..69050d268615 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 @@ -1996,7 +1996,7 @@ const int32_t src_int32_8_21_4535_5000_fir[1984] = { }; -struct src_stage src_int32_8_21_4535_5000 = { +const struct src_stage src_int32_8_21_4535_5000 = { 13, 5, 8, 248, 1984, 21, 8, 0, 1, src_int32_8_21_4535_5000_fir}; /** \endcond */ 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 78b22782c66a..ce5940ca8dda 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 @@ -172,7 +172,7 @@ const int32_t src_int32_8_7_1361_5000_fir[160] = { }; -struct src_stage src_int32_8_7_1361_5000 = { +const struct src_stage src_int32_8_7_1361_5000 = { 6, 7, 8, 20, 160, 7, 8, 0, 0, src_int32_8_7_1361_5000_fir}; /** \endcond */ 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 f8c8b11efddc..7abcce4fa5e3 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 @@ -204,7 +204,7 @@ const int32_t src_int32_8_7_2468_5000_fir[192] = { }; -struct src_stage src_int32_8_7_2468_5000 = { +const struct src_stage src_int32_8_7_2468_5000 = { 6, 7, 8, 24, 192, 7, 8, 0, 0, src_int32_8_7_2468_5000_fir}; /** \endcond */ 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 b71b96071313..659428157de4 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 @@ -204,7 +204,7 @@ const int32_t src_int32_8_7_2721_5000_fir[192] = { }; -struct src_stage src_int32_8_7_2721_5000 = { +const struct src_stage src_int32_8_7_2721_5000 = { 6, 7, 8, 24, 192, 7, 8, 0, 0, src_int32_8_7_2721_5000_fir}; /** \endcond */ 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 2e02d9c80455..f3fb747e8815 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 @@ -492,7 +492,7 @@ const int32_t src_int32_8_7_4082_5000_fir[480] = { }; -struct src_stage src_int32_8_7_4082_5000 = { +const struct src_stage src_int32_8_7_4082_5000 = { 6, 7, 8, 60, 480, 7, 8, 0, 0, src_int32_8_7_4082_5000_fir}; /** \endcond */ 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 8754d53b2cad..be1fc74d5af9 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 @@ -908,7 +908,7 @@ const int32_t src_int32_8_7_4535_5000_fir[896] = { }; -struct src_stage src_int32_8_7_4535_5000 = { +const struct src_stage src_int32_8_7_4535_5000 = { 6, 7, 8, 112, 896, 7, 8, 0, 0, src_int32_8_7_4535_5000_fir}; /** \endcond */ diff --git a/src/audio/src/coef/src_ipc4_int32_table.h b/src/audio/src/coef/src_ipc4_int32_table.h index 98f7cc0e9f09..379d3bacff51 100644 --- a/src/audio/src/coef/src_ipc4_int32_table.h +++ b/src/audio/src/coef/src_ipc4_int32_table.h @@ -100,15 +100,15 @@ #include /* SRC table */ -int32_t fir_one = 1073741824; -struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; -struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; -int src_in_fs[16] = { 8000, 11025, 12000, 16000, 18900, 22050, 24000, 32000, +const int32_t fir_one = 1073741824; +const struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; +const struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; +const int src_in_fs[16] = { 8000, 11025, 12000, 16000, 18900, 22050, 24000, 32000, 37800, 44100, 48000, 64000, 88200, 96000, 176400, 192000 }; -int src_out_fs[10] = { 8000, 16000, 24000, 32000, 44100, 48000, 88200, 96000, +const int src_out_fs[10] = { 8000, 16000, 24000, 32000, 44100, 48000, 88200, 96000, 176400, 192000}; -struct src_stage *src_table1[10][16] = { +const struct src_stage * const src_table1[10][16] = { { &src_int32_1_1_0_0, &src_int32_16_21_4319_5000, &src_int32_2_3_4535_5000, &src_int32_1_2_4535_5000, &src_int32_0_0_0_0, &src_int32_10_21_3455_5000, @@ -201,7 +201,7 @@ struct src_stage *src_table1[10][16] = { } }; -struct src_stage *src_table2[10][16] = { +const struct src_stage * const src_table2[10][16] = { { &src_int32_1_1_0_0, &src_int32_20_21_4535_5000, &src_int32_1_1_0_0, &src_int32_1_1_0_0, &src_int32_0_0_0_0, &src_int32_16_21_4535_5000, diff --git a/src/audio/src/coef/src_lite_ipc4_int32_table.h b/src/audio/src/coef/src_lite_ipc4_int32_table.h index 90f6b6d15c8a..45eda35b59e0 100644 --- a/src/audio/src/coef/src_lite_ipc4_int32_table.h +++ b/src/audio/src/coef/src_lite_ipc4_int32_table.h @@ -21,19 +21,19 @@ #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}; +const int32_t src_fir_one = Q_CONVERT_FLOAT(1, 30); +const struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &src_fir_one }; +const struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &src_fir_one }; +const int src_in_fs[3] = { 32000, 44100, 48000}; +const int src_out_fs[2] = {16000, 48000}; -struct src_stage *src_table1[2][3] = { +const struct src_stage * const 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] = { +const struct src_stage * const 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 } }; 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 e47e44345aa9..d219ed5ef4f1 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 @@ -50,6 +50,6 @@ const int32_t src_int32_1_2_2268_5000_fir[40] = { }; -struct src_stage src_int32_1_2_2268_5000 = { +const struct src_stage src_int32_1_2_2268_5000 = { 1, 0, 1, 40, 40, 2, 1, 0, 1, src_int32_1_2_2268_5000_fir}; 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 bc677003b18b..652a5d286def 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 @@ -210,6 +210,6 @@ const int32_t src_int32_1_2_4535_5000_fir[200] = { }; -struct src_stage src_int32_1_2_4535_5000 = { +const struct src_stage src_int32_1_2_4535_5000 = { 1, 0, 1, 200, 200, 2, 1, 0, 1, src_int32_1_2_4535_5000_fir}; 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 b56245e5b61c..f7f623a729e4 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 @@ -66,6 +66,6 @@ const int32_t src_int32_1_3_2268_5000_fir[56] = { }; -struct src_stage src_int32_1_3_2268_5000 = { +const struct src_stage src_int32_1_3_2268_5000 = { 1, 0, 1, 56, 56, 3, 1, 0, 2, src_int32_1_3_2268_5000_fir}; 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 9086231b48b1..b95e304cc04e 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 @@ -278,6 +278,6 @@ const int32_t src_int32_1_3_4535_5000_fir[268] = { }; -struct src_stage src_int32_1_3_4535_5000 = { +const struct src_stage src_int32_1_3_4535_5000 = { 1, 0, 1, 268, 268, 3, 1, 0, 1, src_int32_1_3_4535_5000_fir}; 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 d8c4224bc811..446154472844 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 @@ -1130,6 +1130,6 @@ const int32_t src_int32_20_21_4167_5000_fir[1120] = { }; -struct src_stage src_int32_20_21_4167_5000 = { +const struct src_stage src_int32_20_21_4167_5000 = { 1, 1, 20, 56, 1120, 21, 20, 0, 0, src_int32_20_21_4167_5000_fir}; 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 19872b67f0fd..b71819361362 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 @@ -1102,6 +1102,6 @@ const int32_t src_int32_21_20_4167_5000_fir[1092] = { }; -struct src_stage src_int32_21_20_4167_5000 = { +const struct src_stage src_int32_21_20_4167_5000 = { 19, 20, 21, 52, 1092, 20, 21, 0, 0, src_int32_21_20_4167_5000_fir}; 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 cfc1c9c42728..1e4f748ccdf7 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 @@ -50,6 +50,6 @@ const int32_t src_int32_2_1_2268_5000_fir[40] = { }; -struct src_stage src_int32_2_1_2268_5000 = { +const struct src_stage src_int32_2_1_2268_5000 = { 0, 1, 2, 20, 40, 1, 2, 0, 0, src_int32_2_1_2268_5000_fir}; 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 31e1d3e361f7..5e452d81a30c 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 @@ -210,6 +210,6 @@ const int32_t src_int32_2_1_4535_5000_fir[200] = { }; -struct src_stage src_int32_2_1_4535_5000 = { +const struct src_stage src_int32_2_1_4535_5000 = { 0, 1, 2, 100, 200, 1, 2, 0, 0, src_int32_2_1_4535_5000_fir}; 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 4c64cb49c4d1..4fbd65381eb6 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 @@ -282,6 +282,6 @@ const int32_t src_int32_2_3_4535_5000_fir[272] = { }; -struct src_stage src_int32_2_3_4535_5000 = { +const struct src_stage src_int32_2_3_4535_5000 = { 1, 1, 2, 136, 272, 3, 2, 0, 0, src_int32_2_3_4535_5000_fir}; 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 f8a379ed0b3f..4390306216d8 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 @@ -70,6 +70,6 @@ const int32_t src_int32_3_1_2268_5000_fir[60] = { }; -struct src_stage src_int32_3_1_2268_5000 = { +const struct src_stage src_int32_3_1_2268_5000 = { 0, 1, 3, 20, 60, 1, 3, 0, 0, src_int32_3_1_2268_5000_fir}; 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 e7d2c66009f6..072640857c74 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 @@ -286,6 +286,6 @@ const int32_t src_int32_3_1_4535_5000_fir[276] = { }; -struct src_stage src_int32_3_1_4535_5000 = { +const struct src_stage src_int32_3_1_4535_5000 = { 0, 1, 3, 92, 276, 1, 3, 0, 0, src_int32_3_1_4535_5000_fir}; 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 c221fb86dbdb..b3d077a8a7be 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 @@ -286,6 +286,6 @@ const int32_t src_int32_3_2_4535_5000_fir[276] = { }; -struct src_stage src_int32_3_2_4535_5000 = { +const struct src_stage src_int32_3_2_4535_5000 = { 1, 2, 3, 92, 276, 2, 3, 0, 0, src_int32_3_2_4535_5000_fir}; 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 f0d1527b74aa..8978336a8b9d 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 @@ -358,6 +358,6 @@ const int32_t src_int32_3_4_4535_5000_fir[348] = { }; -struct src_stage src_int32_3_4_4535_5000 = { +const struct src_stage src_int32_3_4_4535_5000 = { 1, 1, 3, 116, 348, 4, 3, 0, 0, src_int32_3_4_4535_5000_fir}; 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 8cf22c9a9eb7..6801df8a03bc 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 @@ -362,6 +362,6 @@ const int32_t src_int32_4_3_4535_5000_fir[352] = { }; -struct src_stage src_int32_4_3_4535_5000 = { +const struct src_stage src_int32_4_3_4535_5000 = { 2, 3, 4, 88, 352, 3, 4, 0, 0, src_int32_4_3_4535_5000_fir}; 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 10c49bd6f82f..03d43b8376bc 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 @@ -458,6 +458,6 @@ const int32_t src_int32_4_5_4535_5000_fir[448] = { }; -struct src_stage src_int32_4_5_4535_5000 = { +const struct src_stage src_int32_4_5_4535_5000 = { 1, 1, 4, 112, 448, 5, 4, 0, 0, src_int32_4_5_4535_5000_fir}; 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 3e8c24769c44..1424f1e5ef3e 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 @@ -450,6 +450,6 @@ const int32_t src_int32_5_4_4535_5000_fir[440] = { }; -struct src_stage src_int32_5_4_4535_5000 = { +const struct src_stage src_int32_5_4_4535_5000 = { 3, 4, 5, 88, 440, 4, 5, 0, 0, src_int32_5_4_4535_5000_fir}; 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 1323d07df6d0..efc6ced8d93f 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 @@ -390,6 +390,6 @@ const int32_t src_int32_5_6_4354_5000_fir[380] = { }; -struct src_stage src_int32_5_6_4354_5000 = { +const struct src_stage src_int32_5_6_4354_5000 = { 1, 1, 5, 76, 380, 6, 5, 0, 0, src_int32_5_6_4354_5000_fir}; 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 959a4cf8e041..bcb9fc20e303 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 @@ -394,6 +394,6 @@ const int32_t src_int32_6_5_4354_5000_fir[384] = { }; -struct src_stage src_int32_6_5_4354_5000 = { +const struct src_stage src_int32_6_5_4354_5000 = { 4, 5, 6, 64, 384, 5, 6, 0, 0, src_int32_6_5_4354_5000_fir}; 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 0dd63132b167..6e1a0ccd0993 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 @@ -654,6 +654,6 @@ const int32_t src_int32_7_8_4535_5000_fir[644] = { }; -struct src_stage src_int32_7_8_4535_5000 = { +const struct src_stage src_int32_7_8_4535_5000 = { 1, 1, 7, 92, 644, 8, 7, 0, 0, src_int32_7_8_4535_5000_fir}; 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 4f0aeecdde94..103cddcd78c2 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 @@ -650,6 +650,6 @@ const int32_t src_int32_8_7_4535_5000_fir[640] = { }; -struct src_stage src_int32_8_7_4535_5000 = { +const struct src_stage src_int32_8_7_4535_5000 = { 6, 7, 8, 80, 640, 7, 8, 0, 0, src_int32_8_7_4535_5000_fir}; diff --git a/src/audio/src/coef/src_small_int32_table.h b/src/audio/src/coef/src_small_int32_table.h index 3a01957e9560..faa5acbeea64 100644 --- a/src/audio/src/coef/src_small_int32_table.h +++ b/src/audio/src/coef/src_small_int32_table.h @@ -32,12 +32,12 @@ #include /* SRC table */ -int32_t fir_one = 1073741824; -struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; -struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; -int src_in_fs[7] = { 8000, 16000, 24000, 32000, 44100, 48000, 50000}; -int src_out_fs[7] = { 8000, 16000, 24000, 32000, 44100, 48000, 50000}; -struct src_stage *src_table1[7][7] = { +const int32_t fir_one = 1073741824; +const struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; +const struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; +const int src_in_fs[7] = { 8000, 16000, 24000, 32000, 44100, 48000, 50000}; +const int src_out_fs[7] = { 8000, 16000, 24000, 32000, 44100, 48000, 50000}; +const struct src_stage * const src_table1[7][7] = { { &src_int32_1_1_0_0, &src_int32_1_2_4535_5000, &src_int32_1_3_4535_5000, &src_int32_1_2_2268_5000, &src_int32_0_0_0_0, &src_int32_1_3_2268_5000, @@ -70,7 +70,8 @@ struct src_stage *src_table1[7][7] = { &src_int32_0_0_0_0, &src_int32_5_4_4535_5000, &src_int32_1_1_0_0} }; -struct src_stage *src_table2[7][7] = { + +const struct src_stage * const src_table2[7][7] = { { &src_int32_1_1_0_0, &src_int32_1_1_0_0, &src_int32_1_1_0_0, &src_int32_1_2_4535_5000, &src_int32_0_0_0_0, &src_int32_1_2_4535_5000, diff --git a/src/audio/src/coef/src_std_int32_10_21_4535_5000.h b/src/audio/src/coef/src_std_int32_10_21_4535_5000.h index 66476a0fde6a..e11aad1a6c5d 100644 --- a/src/audio/src/coef/src_std_int32_10_21_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_10_21_4535_5000.h @@ -1731,6 +1731,6 @@ const int32_t src_int32_10_21_4535_5000_fir[1720] = { }; -struct src_stage src_int32_10_21_4535_5000 = { +const struct src_stage src_int32_10_21_4535_5000 = { 2, 1, 10, 172, 1720, 21, 10, 0, 1, src_int32_10_21_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_1_2_2268_5000.h b/src/audio/src/coef/src_std_int32_1_2_2268_5000.h index 84ad12ab1121..a366e9f4ee34 100644 --- a/src/audio/src/coef/src_std_int32_1_2_2268_5000.h +++ b/src/audio/src/coef/src_std_int32_1_2_2268_5000.h @@ -51,6 +51,6 @@ const int32_t src_int32_1_2_2268_5000_fir[40] = { }; -struct src_stage src_int32_1_2_2268_5000 = { +const struct src_stage src_int32_1_2_2268_5000 = { 1, 0, 1, 40, 40, 2, 1, 0, 1, src_int32_1_2_2268_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_1_2_4535_5000.h b/src/audio/src/coef/src_std_int32_1_2_4535_5000.h index 2a0dab672b32..c454ac1886b2 100644 --- a/src/audio/src/coef/src_std_int32_1_2_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_1_2_4535_5000.h @@ -211,6 +211,6 @@ const int32_t src_int32_1_2_4535_5000_fir[200] = { }; -struct src_stage src_int32_1_2_4535_5000 = { +const struct src_stage src_int32_1_2_4535_5000 = { 1, 0, 1, 200, 200, 2, 1, 0, 1, src_int32_1_2_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_1_3_2268_5000.h b/src/audio/src/coef/src_std_int32_1_3_2268_5000.h index 8bfafbee4499..bd26d4ec9c9d 100644 --- a/src/audio/src/coef/src_std_int32_1_3_2268_5000.h +++ b/src/audio/src/coef/src_std_int32_1_3_2268_5000.h @@ -67,6 +67,6 @@ const int32_t src_int32_1_3_2268_5000_fir[56] = { }; -struct src_stage src_int32_1_3_2268_5000 = { +const struct src_stage src_int32_1_3_2268_5000 = { 1, 0, 1, 56, 56, 3, 1, 0, 2, src_int32_1_3_2268_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_1_3_4535_5000.h b/src/audio/src/coef/src_std_int32_1_3_4535_5000.h index a0976d42317c..38109b271356 100644 --- a/src/audio/src/coef/src_std_int32_1_3_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_1_3_4535_5000.h @@ -279,6 +279,6 @@ const int32_t src_int32_1_3_4535_5000_fir[268] = { }; -struct src_stage src_int32_1_3_4535_5000 = { +const struct src_stage src_int32_1_3_4535_5000 = { 1, 0, 1, 268, 268, 3, 1, 0, 1, src_int32_1_3_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_20_21_4167_5000.h b/src/audio/src/coef/src_std_int32_20_21_4167_5000.h index 1f509a70f00e..b5bbe099a202 100644 --- a/src/audio/src/coef/src_std_int32_20_21_4167_5000.h +++ b/src/audio/src/coef/src_std_int32_20_21_4167_5000.h @@ -1131,6 +1131,6 @@ const int32_t src_int32_20_21_4167_5000_fir[1120] = { }; -struct src_stage src_int32_20_21_4167_5000 = { +const struct src_stage src_int32_20_21_4167_5000 = { 1, 1, 20, 56, 1120, 21, 20, 0, 0, src_int32_20_21_4167_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_20_7_2976_5000.h b/src/audio/src/coef/src_std_int32_20_7_2976_5000.h index b2ff074f872b..6f7c70e666b4 100644 --- a/src/audio/src/coef/src_std_int32_20_7_2976_5000.h +++ b/src/audio/src/coef/src_std_int32_20_7_2976_5000.h @@ -491,6 +491,6 @@ const int32_t src_int32_20_7_2976_5000_fir[480] = { }; -struct src_stage src_int32_20_7_2976_5000 = { +const struct src_stage src_int32_20_7_2976_5000 = { 1, 3, 20, 24, 480, 7, 20, 0, 0, src_int32_20_7_2976_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_21_20_4167_5000.h b/src/audio/src/coef/src_std_int32_21_20_4167_5000.h index 38d6c22ce158..34d1467e4d63 100644 --- a/src/audio/src/coef/src_std_int32_21_20_4167_5000.h +++ b/src/audio/src/coef/src_std_int32_21_20_4167_5000.h @@ -1103,6 +1103,6 @@ const int32_t src_int32_21_20_4167_5000_fir[1092] = { }; -struct src_stage src_int32_21_20_4167_5000 = { +const struct src_stage src_int32_21_20_4167_5000 = { 19, 20, 21, 52, 1092, 20, 21, 0, 0, src_int32_21_20_4167_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_21_40_3968_5000.h b/src/audio/src/coef/src_std_int32_21_40_3968_5000.h index 0abb3006c3e2..87db87cf59d1 100644 --- a/src/audio/src/coef/src_std_int32_21_40_3968_5000.h +++ b/src/audio/src/coef/src_std_int32_21_40_3968_5000.h @@ -1607,6 +1607,6 @@ const int32_t src_int32_21_40_3968_5000_fir[1596] = { }; -struct src_stage src_int32_21_40_3968_5000 = { +const struct src_stage src_int32_21_40_3968_5000 = { 19, 10, 21, 76, 1596, 40, 21, 0, 1, src_int32_21_40_3968_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_21_80_3968_5000.h b/src/audio/src/coef/src_std_int32_21_80_3968_5000.h index a88bee5d425a..79ffbf91dce5 100644 --- a/src/audio/src/coef/src_std_int32_21_80_3968_5000.h +++ b/src/audio/src/coef/src_std_int32_21_80_3968_5000.h @@ -3119,6 +3119,6 @@ const int32_t src_int32_21_80_3968_5000_fir[3108] = { }; -struct src_stage src_int32_21_80_3968_5000 = { +const struct src_stage src_int32_21_80_3968_5000 = { 19, 5, 21, 148, 3108, 80, 21, 0, 2, src_int32_21_80_3968_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_2_1_2268_5000.h b/src/audio/src/coef/src_std_int32_2_1_2268_5000.h index 39a017edf2f1..7d7521e39e19 100644 --- a/src/audio/src/coef/src_std_int32_2_1_2268_5000.h +++ b/src/audio/src/coef/src_std_int32_2_1_2268_5000.h @@ -51,6 +51,6 @@ const int32_t src_int32_2_1_2268_5000_fir[40] = { }; -struct src_stage src_int32_2_1_2268_5000 = { +const struct src_stage src_int32_2_1_2268_5000 = { 0, 1, 2, 20, 40, 1, 2, 0, 0, src_int32_2_1_2268_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_2_1_4535_5000.h b/src/audio/src/coef/src_std_int32_2_1_4535_5000.h index f3df8d078349..7e78e7b33c1e 100644 --- a/src/audio/src/coef/src_std_int32_2_1_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_2_1_4535_5000.h @@ -211,6 +211,6 @@ const int32_t src_int32_2_1_4535_5000_fir[200] = { }; -struct src_stage src_int32_2_1_4535_5000 = { +const struct src_stage src_int32_2_1_4535_5000 = { 0, 1, 2, 100, 200, 1, 2, 0, 0, src_int32_2_1_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_2_3_4535_5000.h b/src/audio/src/coef/src_std_int32_2_3_4535_5000.h index 77aa6a6c8a07..9d7f864804a6 100644 --- a/src/audio/src/coef/src_std_int32_2_3_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_2_3_4535_5000.h @@ -283,6 +283,6 @@ const int32_t src_int32_2_3_4535_5000_fir[272] = { }; -struct src_stage src_int32_2_3_4535_5000 = { +const struct src_stage src_int32_2_3_4535_5000 = { 1, 1, 2, 136, 272, 3, 2, 0, 0, src_int32_2_3_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_32_21_4535_5000.h b/src/audio/src/coef/src_std_int32_32_21_4535_5000.h index a7e4908f2241..aa57e547bbac 100644 --- a/src/audio/src/coef/src_std_int32_32_21_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_32_21_4535_5000.h @@ -2827,6 +2827,6 @@ const int32_t src_int32_32_21_4535_5000_fir[2816] = { }; -struct src_stage src_int32_32_21_4535_5000 = { +const struct src_stage src_int32_32_21_4535_5000 = { 19, 29, 32, 88, 2816, 21, 32, 0, 0, src_int32_32_21_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_3_1_2268_5000.h b/src/audio/src/coef/src_std_int32_3_1_2268_5000.h index 7535aa1dc8a9..cc826dbc3c05 100644 --- a/src/audio/src/coef/src_std_int32_3_1_2268_5000.h +++ b/src/audio/src/coef/src_std_int32_3_1_2268_5000.h @@ -71,6 +71,6 @@ const int32_t src_int32_3_1_2268_5000_fir[60] = { }; -struct src_stage src_int32_3_1_2268_5000 = { +const struct src_stage src_int32_3_1_2268_5000 = { 0, 1, 3, 20, 60, 1, 3, 0, 0, src_int32_3_1_2268_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_3_1_4535_5000.h b/src/audio/src/coef/src_std_int32_3_1_4535_5000.h index 0d9e0b7490c8..ad6aefdb63e5 100644 --- a/src/audio/src/coef/src_std_int32_3_1_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_3_1_4535_5000.h @@ -287,6 +287,6 @@ const int32_t src_int32_3_1_4535_5000_fir[276] = { }; -struct src_stage src_int32_3_1_4535_5000 = { +const struct src_stage src_int32_3_1_4535_5000 = { 0, 1, 3, 92, 276, 1, 3, 0, 0, src_int32_3_1_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_3_2_4535_5000.h b/src/audio/src/coef/src_std_int32_3_2_4535_5000.h index 207e5d46ec53..05858d298ffd 100644 --- a/src/audio/src/coef/src_std_int32_3_2_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_3_2_4535_5000.h @@ -287,6 +287,6 @@ const int32_t src_int32_3_2_4535_5000_fir[276] = { }; -struct src_stage src_int32_3_2_4535_5000 = { +const struct src_stage src_int32_3_2_4535_5000 = { 1, 2, 3, 92, 276, 2, 3, 0, 0, src_int32_3_2_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_3_4_4535_5000.h b/src/audio/src/coef/src_std_int32_3_4_4535_5000.h index 1b095ea7d260..9624fcacb723 100644 --- a/src/audio/src/coef/src_std_int32_3_4_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_3_4_4535_5000.h @@ -359,6 +359,6 @@ const int32_t src_int32_3_4_4535_5000_fir[348] = { }; -struct src_stage src_int32_3_4_4535_5000 = { +const struct src_stage src_int32_3_4_4535_5000 = { 1, 1, 3, 116, 348, 4, 3, 0, 0, src_int32_3_4_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_40_21_3968_5000.h b/src/audio/src/coef/src_std_int32_40_21_3968_5000.h index 2226af00f136..b9392aa72075 100644 --- a/src/audio/src/coef/src_std_int32_40_21_3968_5000.h +++ b/src/audio/src/coef/src_std_int32_40_21_3968_5000.h @@ -1611,6 +1611,6 @@ const int32_t src_int32_40_21_3968_5000_fir[1600] = { }; -struct src_stage src_int32_40_21_3968_5000 = { +const struct src_stage src_int32_40_21_3968_5000 = { 11, 21, 40, 40, 1600, 21, 40, 0, 0, src_int32_40_21_3968_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_4_3_4535_5000.h b/src/audio/src/coef/src_std_int32_4_3_4535_5000.h index cda7ad86fcee..3a58b807953b 100644 --- a/src/audio/src/coef/src_std_int32_4_3_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_4_3_4535_5000.h @@ -363,6 +363,6 @@ const int32_t src_int32_4_3_4535_5000_fir[352] = { }; -struct src_stage src_int32_4_3_4535_5000 = { +const struct src_stage src_int32_4_3_4535_5000 = { 2, 3, 4, 88, 352, 3, 4, 0, 0, src_int32_4_3_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_4_5_4535_5000.h b/src/audio/src/coef/src_std_int32_4_5_4535_5000.h index c1235f9b290e..e99221f5776e 100644 --- a/src/audio/src/coef/src_std_int32_4_5_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_4_5_4535_5000.h @@ -459,6 +459,6 @@ const int32_t src_int32_4_5_4535_5000_fir[448] = { }; -struct src_stage src_int32_4_5_4535_5000 = { +const struct src_stage src_int32_4_5_4535_5000 = { 1, 1, 4, 112, 448, 5, 4, 0, 0, src_int32_4_5_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_5_4_4535_5000.h b/src/audio/src/coef/src_std_int32_5_4_4535_5000.h index b431e207a7be..8c2b28c5cf16 100644 --- a/src/audio/src/coef/src_std_int32_5_4_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_5_4_4535_5000.h @@ -451,6 +451,6 @@ const int32_t src_int32_5_4_4535_5000_fir[440] = { }; -struct src_stage src_int32_5_4_4535_5000 = { +const struct src_stage src_int32_5_4_4535_5000 = { 3, 4, 5, 88, 440, 4, 5, 0, 0, src_int32_5_4_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_5_6_4354_5000.h b/src/audio/src/coef/src_std_int32_5_6_4354_5000.h index afdb5e87ff4f..207f24596fb1 100644 --- a/src/audio/src/coef/src_std_int32_5_6_4354_5000.h +++ b/src/audio/src/coef/src_std_int32_5_6_4354_5000.h @@ -391,6 +391,6 @@ const int32_t src_int32_5_6_4354_5000_fir[380] = { }; -struct src_stage src_int32_5_6_4354_5000 = { +const struct src_stage src_int32_5_6_4354_5000 = { 1, 1, 5, 76, 380, 6, 5, 0, 0, src_int32_5_6_4354_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_5_7_4535_5000.h b/src/audio/src/coef/src_std_int32_5_7_4535_5000.h index 0cd95a072d71..479526aa3ceb 100644 --- a/src/audio/src/coef/src_std_int32_5_7_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_5_7_4535_5000.h @@ -591,6 +591,6 @@ const int32_t src_int32_5_7_4535_5000_fir[580] = { }; -struct src_stage src_int32_5_7_4535_5000 = { +const struct src_stage src_int32_5_7_4535_5000 = { 4, 3, 5, 116, 580, 7, 5, 0, 0, src_int32_5_7_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_6_5_4354_5000.h b/src/audio/src/coef/src_std_int32_6_5_4354_5000.h index 97dd8bb58b90..cfa9d1ad6902 100644 --- a/src/audio/src/coef/src_std_int32_6_5_4354_5000.h +++ b/src/audio/src/coef/src_std_int32_6_5_4354_5000.h @@ -395,6 +395,6 @@ const int32_t src_int32_6_5_4354_5000_fir[384] = { }; -struct src_stage src_int32_6_5_4354_5000 = { +const struct src_stage src_int32_6_5_4354_5000 = { 4, 5, 6, 64, 384, 5, 6, 0, 0, src_int32_6_5_4354_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_7_8_4535_5000.h b/src/audio/src/coef/src_std_int32_7_8_4535_5000.h index 5a062efbba8b..028b2fb81205 100644 --- a/src/audio/src/coef/src_std_int32_7_8_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_7_8_4535_5000.h @@ -655,6 +655,6 @@ const int32_t src_int32_7_8_4535_5000_fir[644] = { }; -struct src_stage src_int32_7_8_4535_5000 = { +const struct src_stage src_int32_7_8_4535_5000 = { 1, 1, 7, 92, 644, 8, 7, 0, 0, src_int32_7_8_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_8_21_3239_5000.h b/src/audio/src/coef/src_std_int32_8_21_3239_5000.h index b004c13c2390..025637d9c786 100644 --- a/src/audio/src/coef/src_std_int32_8_21_3239_5000.h +++ b/src/audio/src/coef/src_std_int32_8_21_3239_5000.h @@ -491,6 +491,6 @@ const int32_t src_int32_8_21_3239_5000_fir[480] = { }; -struct src_stage src_int32_8_21_3239_5000 = { +const struct src_stage src_int32_8_21_3239_5000 = { 13, 5, 8, 60, 480, 21, 8, 0, 1, src_int32_8_21_3239_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_8_7_2468_5000.h b/src/audio/src/coef/src_std_int32_8_7_2468_5000.h index 47e251542b12..49b65316347d 100644 --- a/src/audio/src/coef/src_std_int32_8_7_2468_5000.h +++ b/src/audio/src/coef/src_std_int32_8_7_2468_5000.h @@ -171,6 +171,6 @@ const int32_t src_int32_8_7_2468_5000_fir[160] = { }; -struct src_stage src_int32_8_7_2468_5000 = { +const struct src_stage src_int32_8_7_2468_5000 = { 6, 7, 8, 20, 160, 7, 8, 0, 0, src_int32_8_7_2468_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_8_7_4535_5000.h b/src/audio/src/coef/src_std_int32_8_7_4535_5000.h index 8a0d48af9a04..a6a732b7ac18 100644 --- a/src/audio/src/coef/src_std_int32_8_7_4535_5000.h +++ b/src/audio/src/coef/src_std_int32_8_7_4535_5000.h @@ -651,6 +651,6 @@ const int32_t src_int32_8_7_4535_5000_fir[640] = { }; -struct src_stage src_int32_8_7_4535_5000 = { +const struct src_stage src_int32_8_7_4535_5000 = { 6, 7, 8, 80, 640, 7, 8, 0, 0, src_int32_8_7_4535_5000_fir}; diff --git a/src/audio/src/coef/src_std_int32_table.h b/src/audio/src/coef/src_std_int32_table.h index 9d96da8c6658..4d095537d9a1 100644 --- a/src/audio/src/coef/src_std_int32_table.h +++ b/src/audio/src/coef/src_std_int32_table.h @@ -42,14 +42,14 @@ #include /* SRC table */ -int32_t fir_one = 1073741824; -struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; -struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; -int src_in_fs[15] = { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, +const int32_t fir_one = 1073741824; +const struct src_stage src_int32_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; +const struct src_stage src_int32_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; +const int src_in_fs[15] = { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 50000, 64000, 88200, 96000, 176400, 192000}; -int src_out_fs[10] = { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, +const int src_out_fs[10] = { 8000, 11025, 12000, 16000, 22050, 24000, 32000, 44100, 48000, 50000}; -struct src_stage *src_table1[10][15] = { +const struct src_stage * const src_table1[10][15] = { { &src_int32_1_1_0_0, &src_int32_0_0_0_0, &src_int32_0_0_0_0, &src_int32_1_2_4535_5000, &src_int32_0_0_0_0, &src_int32_1_3_4535_5000, @@ -136,7 +136,8 @@ struct src_stage *src_table1[10][15] = { &src_int32_0_0_0_0, &src_int32_0_0_0_0 } }; -struct src_stage *src_table2[10][15] = { + +const struct src_stage * const src_table2[10][15] = { { &src_int32_1_1_0_0, &src_int32_0_0_0_0, &src_int32_0_0_0_0, &src_int32_1_1_0_0, &src_int32_0_0_0_0, &src_int32_1_1_0_0, diff --git a/src/audio/src/coef/src_tiny_int16_1_2_1814_5000.h b/src/audio/src/coef/src_tiny_int16_1_2_1814_5000.h index 2ba4d00e5df8..71acd66467b3 100644 --- a/src/audio/src/coef/src_tiny_int16_1_2_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_1_2_1814_5000.h @@ -42,6 +42,6 @@ const int16_t src_int16_1_2_1814_5000_fir[32] = { }; -struct src_stage src_int16_1_2_1814_5000 = { +const struct src_stage src_int16_1_2_1814_5000 = { 1, 0, 1, 32, 32, 2, 1, 0, 1, src_int16_1_2_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_1_3_1814_5000.h b/src/audio/src/coef/src_tiny_int16_1_3_1814_5000.h index b98a3334b3e8..af7fe712e403 100644 --- a/src/audio/src/coef/src_tiny_int16_1_3_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_1_3_1814_5000.h @@ -59,6 +59,6 @@ const int16_t src_int16_1_3_1814_5000_fir[48] = { }; -struct src_stage src_int16_1_3_1814_5000 = { +const struct src_stage src_int16_1_3_1814_5000 = { 1, 0, 1, 48, 48, 3, 1, 0, 2, src_int16_1_3_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_1_6_1814_5000.h b/src/audio/src/coef/src_tiny_int16_1_6_1814_5000.h index 9a5a4eb7406e..3b76dd59eeda 100644 --- a/src/audio/src/coef/src_tiny_int16_1_6_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_1_6_1814_5000.h @@ -103,6 +103,6 @@ const int16_t src_int16_1_6_1814_5000_fir[92] = { }; -struct src_stage src_int16_1_6_1814_5000 = { +const struct src_stage src_int16_1_6_1814_5000 = { 1, 0, 1, 92, 92, 6, 1, 0, 3, src_int16_1_6_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_20_21_1667_5000.h b/src/audio/src/coef/src_tiny_int16_20_21_1667_5000.h index 7c38826a6025..f22f307a32c8 100644 --- a/src/audio/src/coef/src_tiny_int16_20_21_1667_5000.h +++ b/src/audio/src/coef/src_tiny_int16_20_21_1667_5000.h @@ -331,6 +331,6 @@ const int16_t src_int16_20_21_1667_5000_fir[320] = { }; -struct src_stage src_int16_20_21_1667_5000 = { +const struct src_stage src_int16_20_21_1667_5000 = { 1, 1, 20, 16, 320, 21, 20, 0, 0, src_int16_20_21_1667_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_21_20_1667_5000.h b/src/audio/src/coef/src_tiny_int16_21_20_1667_5000.h index af44903679c8..5ef1c3f8d60e 100644 --- a/src/audio/src/coef/src_tiny_int16_21_20_1667_5000.h +++ b/src/audio/src/coef/src_tiny_int16_21_20_1667_5000.h @@ -347,6 +347,6 @@ const int16_t src_int16_21_20_1667_5000_fir[336] = { }; -struct src_stage src_int16_21_20_1667_5000 = { +const struct src_stage src_int16_21_20_1667_5000 = { 19, 20, 21, 16, 336, 20, 21, 0, 0, src_int16_21_20_1667_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_24_25_1814_5000.h b/src/audio/src/coef/src_tiny_int16_24_25_1814_5000.h index c824621b077e..52f9cda9418d 100644 --- a/src/audio/src/coef/src_tiny_int16_24_25_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_24_25_1814_5000.h @@ -491,6 +491,6 @@ const int16_t src_int16_24_25_1814_5000_fir[480] = { }; -struct src_stage src_int16_24_25_1814_5000 = { +const struct src_stage src_int16_24_25_1814_5000 = { 1, 1, 24, 20, 480, 25, 24, 0, 0, src_int16_24_25_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_25_24_1814_5000.h b/src/audio/src/coef/src_tiny_int16_25_24_1814_5000.h index 33c7231697b4..10bda3c38557 100644 --- a/src/audio/src/coef/src_tiny_int16_25_24_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_25_24_1814_5000.h @@ -411,6 +411,6 @@ const int16_t src_int16_25_24_1814_5000_fir[400] = { }; -struct src_stage src_int16_25_24_1814_5000 = { +const struct src_stage src_int16_25_24_1814_5000 = { 23, 24, 25, 16, 400, 24, 25, 0, 0, src_int16_25_24_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_2_1_1814_5000.h b/src/audio/src/coef/src_tiny_int16_2_1_1814_5000.h index 2867f4513ed5..550e04725a8e 100644 --- a/src/audio/src/coef/src_tiny_int16_2_1_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_2_1_1814_5000.h @@ -42,6 +42,6 @@ const int16_t src_int16_2_1_1814_5000_fir[32] = { }; -struct src_stage src_int16_2_1_1814_5000 = { +const struct src_stage src_int16_2_1_1814_5000 = { 0, 1, 2, 16, 32, 1, 2, 0, 0, src_int16_2_1_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_2_3_1814_5000.h b/src/audio/src/coef/src_tiny_int16_2_3_1814_5000.h index 4f2e68d6cbc8..66a6df9a869c 100644 --- a/src/audio/src/coef/src_tiny_int16_2_3_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_2_3_1814_5000.h @@ -59,6 +59,6 @@ const int16_t src_int16_2_3_1814_5000_fir[48] = { }; -struct src_stage src_int16_2_3_1814_5000 = { +const struct src_stage src_int16_2_3_1814_5000 = { 1, 1, 2, 24, 48, 3, 2, 0, 1, src_int16_2_3_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_3_1_1814_5000.h b/src/audio/src/coef/src_tiny_int16_3_1_1814_5000.h index e2f7b46be76f..7947f1a62e62 100644 --- a/src/audio/src/coef/src_tiny_int16_3_1_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_3_1_1814_5000.h @@ -59,6 +59,6 @@ const int16_t src_int16_3_1_1814_5000_fir[48] = { }; -struct src_stage src_int16_3_1_1814_5000 = { +const struct src_stage src_int16_3_1_1814_5000 = { 0, 1, 3, 16, 48, 1, 3, 0, 0, src_int16_3_1_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_3_2_1814_5000.h b/src/audio/src/coef/src_tiny_int16_3_2_1814_5000.h index 58cfaf76b8d5..e95f47b95714 100644 --- a/src/audio/src/coef/src_tiny_int16_3_2_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_3_2_1814_5000.h @@ -59,6 +59,6 @@ const int16_t src_int16_3_2_1814_5000_fir[48] = { }; -struct src_stage src_int16_3_2_1814_5000 = { +const struct src_stage src_int16_3_2_1814_5000 = { 1, 2, 3, 16, 48, 2, 3, 0, 0, src_int16_3_2_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_6_1_1814_5000.h b/src/audio/src/coef/src_tiny_int16_6_1_1814_5000.h index f6f6274eff2e..db2867fcc5cc 100644 --- a/src/audio/src/coef/src_tiny_int16_6_1_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_6_1_1814_5000.h @@ -107,6 +107,6 @@ const int16_t src_int16_6_1_1814_5000_fir[96] = { }; -struct src_stage src_int16_6_1_1814_5000 = { +const struct src_stage src_int16_6_1_1814_5000 = { 0, 1, 6, 16, 96, 1, 6, 0, 0, src_int16_6_1_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_7_8_1814_5000.h b/src/audio/src/coef/src_tiny_int16_7_8_1814_5000.h index 6a95ea17288e..7b1d4907c8a9 100644 --- a/src/audio/src/coef/src_tiny_int16_7_8_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_7_8_1814_5000.h @@ -151,6 +151,6 @@ const int16_t src_int16_7_8_1814_5000_fir[140] = { }; -struct src_stage src_int16_7_8_1814_5000 = { +const struct src_stage src_int16_7_8_1814_5000 = { 1, 1, 7, 20, 140, 8, 7, 0, 0, src_int16_7_8_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_8_7_1814_5000.h b/src/audio/src/coef/src_tiny_int16_8_7_1814_5000.h index 42c2c9707492..132cdd1c7b22 100644 --- a/src/audio/src/coef/src_tiny_int16_8_7_1814_5000.h +++ b/src/audio/src/coef/src_tiny_int16_8_7_1814_5000.h @@ -139,6 +139,6 @@ const int16_t src_int16_8_7_1814_5000_fir[128] = { }; -struct src_stage src_int16_8_7_1814_5000 = { +const struct src_stage src_int16_8_7_1814_5000 = { 6, 7, 8, 16, 128, 7, 8, 0, 0, src_int16_8_7_1814_5000_fir}; diff --git a/src/audio/src/coef/src_tiny_int16_table.h b/src/audio/src/coef/src_tiny_int16_table.h index 3a6003db75d8..c345385b89e3 100644 --- a/src/audio/src/coef/src_tiny_int16_table.h +++ b/src/audio/src/coef/src_tiny_int16_table.h @@ -26,12 +26,12 @@ #include /* SRC table */ -int16_t fir_one = 16384; -struct src_stage src_int16_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; -struct src_stage src_int16_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; -int src_in_fs[7] = { 8000, 16000, 32000, 44100, 48000, 50000, 96000}; -int src_out_fs[7] = { 8000, 16000, 32000, 44100, 48000, 50000, 96000}; -struct src_stage *src_table1[7][7] = { +const int16_t fir_one = 16384; +const struct src_stage src_int16_1_1_0_0 = { 0, 0, 1, 1, 1, 1, 1, 0, -1, &fir_one }; +const struct src_stage src_int16_0_0_0_0 = { 0, 0, 0, 0, 0, 0, 0, 0, 0, &fir_one }; +const int src_in_fs[7] = { 8000, 16000, 32000, 44100, 48000, 50000, 96000}; +const int src_out_fs[7] = { 8000, 16000, 32000, 44100, 48000, 50000, 96000}; +const struct src_stage * const src_table1[7][7] = { { &src_int16_1_1_0_0, &src_int16_0_0_0_0, &src_int16_0_0_0_0, &src_int16_0_0_0_0, &src_int16_1_6_1814_5000, &src_int16_0_0_0_0, @@ -65,7 +65,7 @@ struct src_stage *src_table1[7][7] = { &src_int16_1_1_0_0} }; -struct src_stage *src_table2[7][7] = { +const struct src_stage * const src_table2[7][7] = { { &src_int16_1_1_0_0, &src_int16_0_0_0_0, &src_int16_0_0_0_0, &src_int16_0_0_0_0, &src_int16_1_1_0_0, &src_int16_0_0_0_0, diff --git a/src/audio/src/src.c b/src/audio/src/src.c index 731d29680668..8c88ac57c908 100644 --- a/src/audio/src/src.c +++ b/src/audio/src/src.c @@ -70,8 +70,8 @@ LOG_MODULE_REGISTER(src, CONFIG_SOF_LOG_LEVEL); int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, int nch) { - struct src_stage *stage1; - struct src_stage *stage2; + const struct src_stage *stage1; + const struct src_stage *stage2; struct src_param *a; int fs_in, fs_out; int source_frames; @@ -150,7 +150,7 @@ int src_buffer_lengths(struct comp_dev *dev, struct comp_data *cd, return 0; } -int init_stages(struct src_stage *stage1, struct src_stage *stage2, +int init_stages(const struct src_stage *stage1, const struct src_stage *stage2, struct polyphase_src *src, struct src_param *p, int n, int32_t *delay_lines_start) { @@ -219,8 +219,8 @@ int init_stages(struct src_stage *stage1, struct src_stage *stage2, int src_polyphase_init(struct polyphase_src *src, struct src_param *p, int32_t *delay_lines_start) { - struct src_stage *stage1; - struct src_stage *stage2; + const struct src_stage *stage1; + const struct src_stage *stage2; int n_stages; int ret; @@ -466,8 +466,8 @@ bool src_get_copy_limits(struct comp_data *cd, struct sof_sink *sink) { struct src_param *sp; - struct src_stage *s1; - struct src_stage *s2; + const struct src_stage *s1; + const struct src_stage *s2; int frames_src; int frames_snk; diff --git a/src/audio/src/src.h b/src/audio/src/src.h index 2ead7fa95062..96ee8b210339 100644 --- a/src/audio/src/src.h +++ b/src/audio/src/src.h @@ -57,8 +57,8 @@ struct src_state { struct polyphase_src { int number_of_stages; - struct src_stage *stage1; - struct src_stage *stage2; + const struct src_stage *stage1; + const struct src_stage *stage2; struct src_state state1; struct src_state state2; }; @@ -75,7 +75,7 @@ struct src_stage_prm { size_t y_size; int shift; struct src_state *state; - struct src_stage *stage; + const struct src_stage *stage; }; static inline void src_inc_wrap(int32_t **ptr, int32_t *end, size_t size) @@ -187,20 +187,20 @@ int src_stream_pcm_source_rate_check(struct ipc_config_src cfg, #endif /* CONFIG_IPC_MAJOR_4 */ /* Calculates the needed FIR delay line length */ -static inline int src_fir_delay_length(struct src_stage *s) +static inline int src_fir_delay_length(const 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) +static inline int src_out_delay_length(const 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) +static inline int src_find_fs(const int *fs_list, int list_length, int fs) { int i; @@ -231,7 +231,7 @@ int src_init(struct processing_module *mod); 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, +int init_stages(const struct src_stage *stage1, const 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, diff --git a/src/audio/src/src_generic.c b/src/audio/src/src_generic.c index 6b6661d02c66..d9b523799b53 100644 --- a/src/audio/src/src_generic.c +++ b/src/audio/src/src_generic.c @@ -222,7 +222,7 @@ void src_polyphase_stage_cir(struct src_stage_prm *s) int32_t *wp; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_delay = fir->fir_delay; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; @@ -320,7 +320,7 @@ void src_polyphase_stage_cir_s16(struct src_stage_prm *s) int32_t *wp; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_delay = fir->fir_delay; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; diff --git a/src/audio/src/src_hifi2ep.c b/src/audio/src/src_hifi2ep.c index 6c1e06b23d96..65d5aa36fcb2 100644 --- a/src/audio/src/src_hifi2ep.c +++ b/src/audio/src/src_hifi2ep.c @@ -313,7 +313,7 @@ void src_polyphase_stage_cir(struct src_stage_prm *s) int n_wrap_buf; int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const char *cp; /* Can be int32_t or int16_t */ @@ -438,7 +438,7 @@ void src_polyphase_stage_cir_s16(struct src_stage_prm *s) int n_wrap_buf; int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const char *cp; /* Can be int32_t or int16_t */ diff --git a/src/audio/src/src_hifi3.c b/src/audio/src/src_hifi3.c index bd419fdbfbb1..d9fb1999b80d 100644 --- a/src/audio/src/src_hifi3.c +++ b/src/audio/src/src_hifi3.c @@ -317,7 +317,7 @@ void src_polyphase_stage_cir(struct src_stage_prm *s) int n_wrap_buf; int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const void *cp; /* Can be int32_t or int16_t */ @@ -443,7 +443,7 @@ void src_polyphase_stage_cir_s16(struct src_stage_prm *s) int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const void *cp; /* Can be int32_t or int16_t */ diff --git a/src/audio/src/src_hifi4.c b/src/audio/src/src_hifi4.c index 9e011bf800f3..4fcf95af26e1 100644 --- a/src/audio/src/src_hifi4.c +++ b/src/audio/src/src_hifi4.c @@ -324,7 +324,7 @@ void src_polyphase_stage_cir(struct src_stage_prm *s) int n_wrap_buf; int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const void *cp; /* Can be int32_t or int16_t */ @@ -446,7 +446,7 @@ void src_polyphase_stage_cir_s16(struct src_stage_prm *s) int n_min; struct src_state *fir = s->state; - struct src_stage *cfg = s->stage; + const struct src_stage *cfg = s->stage; int32_t *fir_end = &fir->fir_delay[fir->fir_delay_size]; int32_t *out_delay_end = &fir->out_delay[fir->out_delay_size]; const void *cp; /* Can be int32_t or int16_t */