Skip to content

Commit 531c9b5

Browse files
authored
Merge pull request #449 from thesofproject/revert-445-eq_fir_heap_rt_1k_proposal
Revert "EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer"
2 parents 6327ed5 + 0b2e212 commit 531c9b5

5 files changed

Lines changed: 1 addition & 9 deletions

File tree

src/audio/eq_fir.c

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -204,11 +204,8 @@ static int eq_fir_setup(struct comp_data *cd, int nch)
204204

205205
/* Allocate all FIR channels data in a big chunk and clear it */
206206
cd->fir_delay = rzalloc(RZONE_RUNTIME, SOF_MEM_CAPS_RAM, size_sum);
207-
if (!cd->fir_delay) {
208-
trace_eq_error("eda");
209-
trace_value(size_sum);
207+
if (!cd->fir_delay)
210208
return -ENOMEM;
211-
}
212209

213210
/* Initialize 2nd phase to set EQ delay lines pointers */
214211
fir_delay = cd->fir_delay;

src/platform/apollolake/include/platform/memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,6 @@
136136
#define HEAP_RT_COUNT128 32
137137
#define HEAP_RT_COUNT256 64
138138
#define HEAP_RT_COUNT512 32
139-
#define HEAP_RT_COUNT1024 1
140139

141140
#define L2_VECTOR_SIZE 0x1000
142141

src/platform/cannonlake/include/platform/memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
#define HEAP_RT_COUNT128 32
177177
#define HEAP_RT_COUNT256 64
178178
#define HEAP_RT_COUNT512 32
179-
#define HEAP_RT_COUNT1024 1
180179

181180
#define L2_VECTOR_SIZE 0x1000
182181

src/platform/icelake/include/platform/memory.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,6 @@
176176
#define HEAP_RT_COUNT128 32
177177
#define HEAP_RT_COUNT256 64
178178
#define HEAP_RT_COUNT512 32
179-
#define HEAP_RT_COUNT1024 1
180179

181180
#define L2_VECTOR_SIZE 0x1000
182181

src/platform/intel/cavs/memory.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,15 +36,13 @@ static struct block_hdr mod_block64[HEAP_RT_COUNT64];
3636
static struct block_hdr mod_block128[HEAP_RT_COUNT128];
3737
static struct block_hdr mod_block256[HEAP_RT_COUNT256];
3838
static struct block_hdr mod_block512[HEAP_RT_COUNT512];
39-
static struct block_hdr mod_block1024[HEAP_RT_COUNT1024];
4039

4140
/* Heap memory map for modules */
4241
static struct block_map rt_heap_map[] = {
4342
BLOCK_DEF(64, HEAP_RT_COUNT64, mod_block64),
4443
BLOCK_DEF(128, HEAP_RT_COUNT128, mod_block128),
4544
BLOCK_DEF(256, HEAP_RT_COUNT256, mod_block256),
4645
BLOCK_DEF(512, HEAP_RT_COUNT512, mod_block512),
47-
BLOCK_DEF(1024, HEAP_RT_COUNT1024, mod_block1024),
4846
};
4947

5048
/* Heap blocks for buffers */

0 commit comments

Comments
 (0)