Skip to content

Commit

Permalink
src: make coefficients constant
Browse files Browse the repository at this point in the history
Make coefficients and their tables constant.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Feb 2, 2024
1 parent dd8b932 commit bcc2f05
Show file tree
Hide file tree
Showing 161 changed files with 209 additions and 207 deletions.
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_3455_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_10_9_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_21_4319_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_16_7_4082_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_2721_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_3401_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_3887_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_2_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_3_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_3_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_1512_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_2268_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_4_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_1_6_1134_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_1250_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_3125_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_4167_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_21_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_20_7_2976_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_3455_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_10_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_16_4319_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_16_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_1250_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_2500_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_3125_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_4167_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_20_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_2_3239_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_32_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_40_2381_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_40_3968_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_4_1080_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_4_3239_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_5_1728_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_5_4535_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
2 changes: 1 addition & 1 deletion src/audio/src/coef/src_ipc4_int32_21_80_3968_5000.h
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Loading

0 comments on commit bcc2f05

Please sign in to comment.