Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 22 additions & 0 deletions src/audio/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,28 @@ if(NOT CONFIG_LIBRARY)
target_link_libraries(sof PRIVATE c)
target_link_libraries(sof PRIVATE m)
endif()

if(CONFIG_COMP_GOOGLE_RTC_AUDIO_PROCESSING)
target_include_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/include)
add_local_sources(sof
google_rtc_audio_processing.c
)
if(CONFIG_GOOGLE_RTC_AUDIO_PROCESSING_MOCK)
add_local_sources(sof
google_rtc_audio_processing_mock.c
)
else()
message(INFO "Link with google_rtc_audio_processing")
target_link_directories(sof PRIVATE ${CMAKE_SOURCE_DIR}/third_party/lib)
target_link_libraries(sof PRIVATE google_rtc_audio_processing)
target_link_libraries(sof PRIVATE google_rtc_audio_processing_tuning)
target_link_libraries(sof PRIVATE c++)
target_link_libraries(sof PRIVATE c++abi)
target_link_libraries(sof PRIVATE m)
target_link_libraries(sof PRIVATE c)
endif()
endif()

if(CONFIG_COMP_SEL)
add_subdirectory(selector)
endif()
Expand Down
19 changes: 19 additions & 0 deletions src/audio/Kconfig
Original file line number Diff line number Diff line change
Expand Up @@ -145,6 +145,25 @@ config COMP_GOOGLE_HOTWORD_DETECT
be set using the byte control 'Hotword Model' before running the
detector.

config COMP_GOOGLE_RTC_AUDIO_PROCESSING
bool "Google Real Time Communication Audio processing"
default n
help
Select for Google real-time communication audio processing. It
uses the Google real-time audio processing library to perform
echo-cancelling and other processing.
This component takes raw microphones input and playback reference
and outputs an echo-free microphone signal.

config GOOGLE_RTC_AUDIO_PROCESSING_MOCK
bool "Google Real Time Communication Audio processing mock"
default n
depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
help
Mock Google real-time communication audio processing.
It allows for compilation check and basic audio flow checking.


config COMP_SEL
bool "Channel selector component"
default y
Expand Down
Loading