Skip to content

Commit

Permalink
audio: src: move all coefficients to DRAM
Browse files Browse the repository at this point in the history
src coefficients take a lot of space, keep them in DRAM to only copy
used sets in SRAM.

Signed-off-by: Guennadi Liakhovetski <[email protected]>
  • Loading branch information
lyakh committed Dec 11, 2024
1 parent fa5d722 commit e2d6d11
Show file tree
Hide file tree
Showing 161 changed files with 163 additions and 159 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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_10_21_2500_5000_fir[480] = {
__cold_data static const int32_t src_int32_10_21_2500_5000_fir[480] = {
176197,
283398,
-489527,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_10_21_3455_5000_fir[640] = {
__cold_data static const int32_t src_int32_10_21_3455_5000_fir[640] = {
110400,
517669,
162088,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_10_21_4535_5000_fir[2320] = {
__cold_data static const int32_t src_int32_10_21_4535_5000_fir[2320] = {
26554,
22041,
-35569,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_10_9_4535_5000_fir[1080] = {
__cold_data static const int32_t src_int32_10_9_4535_5000_fir[1080] = {
-35695,
60551,
-91611,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_16_21_4319_5000_fir[1472] = {
__cold_data static const int32_t src_int32_16_21_4319_5000_fir[1472] = {
69743,
-28255,
-123867,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_16_21_4535_5000_fir[2048] = {
__cold_data static const int32_t src_int32_16_21_4535_5000_fir[2048] = {
66387,
-68365,
-7975,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_16_7_4082_5000_fir[896] = {
__cold_data static const int32_t src_int32_16_7_4082_5000_fir[896] = {
-71000,
181977,
-339747,
Expand Down
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 @@ -7,7 +7,7 @@
/** \cond GENERATED_BY_TOOLS_TUNE_SRC */
#include <stdint.h>

static const int32_t src_int32_1_2_2268_5000_fir[36] = {
__cold_data static const int32_t src_int32_1_2_2268_5000_fir[36] = {
1065827,
-37924,
-4976218,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_2_2500_5000_fir[40] = {
__cold_data static const int32_t src_int32_1_2_2500_5000_fir[40] = {
-879692,
460291,
4237437,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_2_2721_5000_fir[44] = {
__cold_data static const int32_t src_int32_1_2_2721_5000_fir[44] = {
776925,
-535235,
-3522824,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_2_3401_5000_fir[60] = {
__cold_data static const int32_t src_int32_1_2_3401_5000_fir[60] = {
483288,
-83413,
-1522435,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_2_3887_5000_fir[84] = {
__cold_data static const int32_t src_int32_1_2_3887_5000_fir[84] = {
488732,
-7737,
-1049640,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_2_4535_5000_fir[192] = {
__cold_data static const int32_t src_int32_1_2_4535_5000_fir[192] = {
-215107,
-43725,
301513,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_3_2268_5000_fir[52] = {
__cold_data static const int32_t src_int32_1_3_2268_5000_fir[52] = {
856478,
-618891,
-4156030,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_3_4535_5000_fir[260] = {
__cold_data static const int32_t src_int32_1_3_4535_5000_fir[260] = {
-76785,
87265,
208768,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_4_1512_5000_fir[52] = {
__cold_data static const int32_t src_int32_1_4_1512_5000_fir[52] = {
740488,
-111252,
-2633435,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_4_2268_5000_fir[60] = {
__cold_data static const int32_t src_int32_1_4_2268_5000_fir[60] = {
-1265010,
-1300023,
42822,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_4_4535_5000_fir[332] = {
__cold_data static const int32_t src_int32_1_4_4535_5000_fir[332] = {
-246503,
-173077,
24381,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_1_6_1134_5000_fir[68] = {
__cold_data static const int32_t src_int32_1_6_1134_5000_fir[68] = {
-2393808,
-3445469,
-3907601,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_21_1250_5000_fir[320] = {
__cold_data static const int32_t src_int32_20_21_1250_5000_fir[320] = {
134710,
1035873,
-9174506,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_21_2500_5000_fir[560] = {
__cold_data static const int32_t src_int32_20_21_2500_5000_fir[560] = {
-5217,
-381011,
1487277,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_21_3125_5000_fir[640] = {
__cold_data static const int32_t src_int32_20_21_3125_5000_fir[640] = {
81905,
-392860,
605436,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_21_4167_5000_fir[1200] = {
__cold_data static const int32_t src_int32_20_21_4167_5000_fir[1200] = {
54594,
-184742,
399571,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_21_4535_5000_fir[2080] = {
__cold_data static const int32_t src_int32_20_21_4535_5000_fir[2080] = {
-39854,
85177,
-146854,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_20_7_2976_5000_fir[560] = {
__cold_data static const int32_t src_int32_20_7_2976_5000_fir[560] = {
-33375,
393038,
-1331352,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_10_2500_5000_fir[504] = {
__cold_data static const int32_t src_int32_21_10_2500_5000_fir[504] = {
7704,
568453,
-2657822,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_10_3455_5000_fir[756] = {
__cold_data static const int32_t src_int32_21_10_3455_5000_fir[756] = {
-37222,
240677,
-698458,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_10_4535_5000_fir[2520] = {
__cold_data static const int32_t src_int32_21_10_4535_5000_fir[2520] = {
-9118,
18975,
-33943,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_16_4319_5000_fir[1596] = {
__cold_data static const int32_t src_int32_21_16_4319_5000_fir[1596] = {
-50136,
105527,
-181643,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_16_4535_5000_fir[2436] = {
__cold_data static const int32_t src_int32_21_16_4535_5000_fir[2436] = {
-15208,
29050,
-48628,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_20_1250_5000_fir[420] = {
__cold_data static const int32_t src_int32_21_20_1250_5000_fir[420] = {
94664,
-1133291,
202774,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_20_2500_5000_fir[504] = {
__cold_data static const int32_t src_int32_21_20_2500_5000_fir[504] = {
8116,
587965,
-2725209,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_20_3125_5000_fir[672] = {
__cold_data static const int32_t src_int32_21_20_3125_5000_fir[672] = {
4928,
190845,
-929522,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_20_4167_5000_fir[1260] = {
__cold_data static const int32_t src_int32_21_20_4167_5000_fir[1260] = {
-79259,
176349,
-298364,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_20_4535_5000_fir[2268] = {
__cold_data static const int32_t src_int32_21_20_4535_5000_fir[2268] = {
-37260,
62223,
-92794,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_2_3239_5000_fir[672] = {
__cold_data static const int32_t src_int32_21_2_3239_5000_fir[672] = {
-35882,
307961,
-974587,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_32_4535_5000_fir[3612] = {
__cold_data static const int32_t src_int32_21_32_4535_5000_fir[3612] = {
-8897,
-11309,
29648,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_40_2381_5000_fir[924] = {
__cold_data static const int32_t src_int32_21_40_2381_5000_fir[924] = {
139084,
174433,
-727541,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_40_3968_5000_fir[1680] = {
__cold_data static const int32_t src_int32_21_40_3968_5000_fir[1680] = {
150373,
421455,
-262792,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_4_1080_5000_fir[336] = {
__cold_data static const int32_t src_int32_21_4_1080_5000_fir[336] = {
139978,
2034094,
-10158575,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_4_3239_5000_fir[672] = {
__cold_data static const int32_t src_int32_21_4_3239_5000_fir[672] = {
-35812,
307539,
-973534,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_5_1728_5000_fir[420] = {
__cold_data static const int32_t src_int32_21_5_1728_5000_fir[420] = {
99153,
137369,
-3779111,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_5_4535_5000_fir[2184] = {
__cold_data static const int32_t src_int32_21_5_4535_5000_fir[2184] = {
-46288,
73523,
-104226,
Expand Down
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 @@ -8,7 +8,7 @@

#include <stdint.h>

static const int32_t src_int32_21_80_3968_5000_fir[3360] = {
__cold_data static const int32_t src_int32_21_80_3968_5000_fir[3360] = {
146819,
357423,
426811,
Expand Down
Loading

0 comments on commit e2d6d11

Please sign in to comment.