Audio: IGO_NR: Set in stub handle size to prevent init error

Function igo_nr_init() expects a nonzero value for rballoc()
size so this can't be left zero. The value is just something
for stub usage that felt suitable for an unknown.

Signed-off-by: Seppo Ingalsuo <seppo.ingalsuo@linux.intel.com>
This commit is contained in:
Seppo Ingalsuo 2023-10-10 19:15:46 +03:00 committed by Liam Girdwood
parent de35a6f05b
commit 0bf04e018b
1 changed files with 7 additions and 0 deletions

View File

@ -6,8 +6,15 @@
#include <sof/audio/igo_nr/igo_nr_comp.h>
/* Set handle_size to Just something instead of 0 from rzalloc() of
* component data to avoid rballoc() in igo_nr_init() to fail.
*/
#define IGO_NR_STUB_HANDLE_SIZE 42
enum IgoRet IgoLibGetInfo(struct IgoLibInfo *info)
{
info->handle_size = IGO_NR_STUB_HANDLE_SIZE;
return IGO_RET_OK;
}