audio: igo: add igo stub library

Added for CI and fuzz testing

Also remove exec permissions on related source files

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
This commit is contained in:
Curtis Malainey 2023-07-13 17:03:05 -07:00 committed by Liam Girdwood
parent d28785ce73
commit 3c6f2c1c63
5 changed files with 45 additions and 0 deletions

View File

@ -478,12 +478,22 @@ config COMP_LEGACY_INTERFACE
config COMP_IGO_NR config COMP_IGO_NR
bool "IGO NR component" bool "IGO NR component"
select COMP_BLOB select COMP_BLOB
select COMP_IGO_NR_STUB if COMP_STUBS
default n default n
help help
This option enables Intelligo non-speech noise reduction. The feature links to a proprietary This option enables Intelligo non-speech noise reduction. The feature links to a proprietary
binary libigonr.a that currently is supported on different Xtensa DSP platforms. Please email binary libigonr.a that currently is supported on different Xtensa DSP platforms. Please email
info@intelli-go.com for any questions about the binary. info@intelli-go.com for any questions about the binary.
config COMP_IGO_NR_STUB
bool "IGO NR component"
select COMP_BLOB
depends on COMP_IGO_NR
default n
help
This option builds the IGO adapter with a stub library, it should only be used for
testing or CI purposes.
config COMP_RTNR config COMP_RTNR
bool "RTNR component" bool "RTNR component"
select COMP_BLOB select COMP_BLOB

View File

@ -1,4 +1,8 @@
# SPDX-License-Identifier: BSD-3-Clause # SPDX-License-Identifier: BSD-3-Clause
add_local_sources(sof igo_nr.c) add_local_sources(sof igo_nr.c)
if (CONFIG_COMP_IGO_NR_STUB)
add_local_sources(sof igo_nr_stub.c)
else ()
sof_add_static_library(IGOChrome ${CMAKE_CURRENT_LIST_DIR}/libigonr.a) sof_add_static_library(IGOChrome ${CMAKE_CURRENT_LIST_DIR}/libigonr.a)
endif ()

0
src/audio/igo_nr/igo_nr.c Executable file → Normal file
View File

View File

@ -0,0 +1,27 @@
// SPDX-License-Identifier: BSD-3-Clause
//
// Copyright(c) 2023 Google LLC. All rights reserved.
//
// Author: Curtis Malainey <cujomalainey@chromium.org>
#include <sof/audio/igo_nr/igo_nr_comp.h>
enum IgoRet IgoLibGetInfo(struct IgoLibInfo *info)
{
return IGO_RET_OK;
}
enum IgoRet IgoLibInit(void *handle,
const struct IgoLibConfig *config,
void *param)
{
return IGO_RET_OK;
}
enum IgoRet IgoLibProcess(void *handle,
const struct IgoStreamData *in,
const struct IgoStreamData *ref,
const struct IgoStreamData *out)
{
return IGO_RET_OK;
}

View File

@ -682,6 +682,10 @@ zephyr_library_sources_ifdef(CONFIG_COMP_IGO_NR
${SOF_AUDIO_PATH}/igo_nr/igo_nr.c ${SOF_AUDIO_PATH}/igo_nr/igo_nr.c
) )
zephyr_library_sources_ifdef(CONFIG_COMP_IGO_NR_STUB
${SOF_AUDIO_PATH}/igo_nr/igo_nr_stub.c
)
zephyr_library_sources_ifdef(CONFIG_COMP_RTNR zephyr_library_sources_ifdef(CONFIG_COMP_RTNR
${SOF_AUDIO_PATH}/rtnr/rtnr.c ${SOF_AUDIO_PATH}/rtnr/rtnr.c
) )