EQ FIR: memory: Add trace error for alloc fail and add a 1024 size buffer#445
Conversation
…ffer This patch adds a single 1024 bytes buffer into heap for e.g. rzalloc() usage. The FIR EQ code didn't trace the allocation failure so it's added to see better if this happens. The 1k allocation for PCM samples delay line is quite typical since a 32 bit 100 tap stereo FIR will need 800 bytes. Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
f93a990 to
0f06203
Compare
|
I just pushed update for this. The first try caused CNL and ICL build fail. |
|
@singalsu if this is a buffer, please use the buffer allocate call, I want to try and free up the system pool for smaller allocations. |
|
@lgirdwood This component used earlier rballoc() but commit 5118c6d changed it to rzalloc(). The smallest practical allocation will be about 500 bytes. Typical maybe closer to 1kB. Should we move it back? |
|
@singalsu ah yes there is some simplification happening for the alloc APIs. |
|
@lgirdwood Did this go wrong. It looks like the patch was first merged and then removed. E.g. the trace that I added about allocation fail is gone. What should I do? |
|
@singalsu it was merged and then reverted due to build failure caused by an earlier PR. Best to reabse on top of master and then fix the build error. |
|
Thanks, I've included Sue Creek now. I'll build now all the platform compilers so I can make sure at my own computer that everything builds. I'll push the update later today. |
This patch adds a single 1024 bytes buffer into heap for e.g. rzalloc() usage. The FIR EQ code didn't trace the allocation failure so it's added to see better if this happens.
The 1k allocation for PCM samples delay line is quite typical since a 32 bit 100 tap stereo FIR will need 800 bytes.
Signed-off-by: Seppo Ingalsuo seppo.ingalsuo@linux.intel.com