How to change Stack Size for Audio PP Dynamic Services?
Whenever a dynamic service thread is spawned, it requires a thread stack size to be defined. By default, Audio PP Services have thread stack size as 8*1024. Stack size requirement of audio processing dynamic service is based on a topology and modules in it. Default stack size can be changed by updating the THREAD_STACK_SIZE variable defined in audproc_svc.cpp
Note: It is highly recommended to use heap memory (dynamic allocation) whenever possible instead of stack memory
How to change Stack Size for Audio Decoder Services?
To set stack size for Decoder Dynamic Services, every decoder has an enum variable "eIcapiThreadStackSize" which is set inside Decode CAPI and fetched using GetParam call at the time of CAPI initialization. Hence, the CAPI should specify the stack size for every decoder module.
For PCM decoding, the thread stack size is set to 2048 bytes.