Skip to content

Commit c7cb6ed

Browse files
committed
google_rtc_audio_processing: Fixes for MTL branch
Squashed fixups to this code from #8571 Signed-off-by: Andy Ross <andyross@google.com>
1 parent 3ee9e75 commit c7cb6ed

3 files changed

Lines changed: 539 additions & 383 deletions

File tree

src/audio/google/Kconfig

Lines changed: 14 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,6 @@ config COMP_GOOGLE_HOTWORD_DETECT
1515
config COMP_GOOGLE_RTC_AUDIO_PROCESSING
1616
bool "Google Real Time Communication Audio processing"
1717
select COMP_BLOB
18-
select GOOGLE_RTC_AUDIO_PROCESSING_MOCK if COMP_STUBS
19-
depends on IPC_MAJOR_4
2018
default n
2119
help
2220
Select for Google real-time communication audio processing. It
@@ -25,13 +23,7 @@ config COMP_GOOGLE_RTC_AUDIO_PROCESSING
2523
This component takes raw microphones input and playback reference
2624
and outputs an echo-free microphone signal.
2725

28-
config COMP_GOOGLE_RTC_USE_32_BIT_FLOAT_API
29-
depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
30-
bool "Use 32bit API in Google Audio processing"
31-
default n
32-
help
33-
Selects an API to be used in communication with the Google real-time
34-
communication audio processing: 32bit float or 16bit integer
26+
if COMP_GOOGLE_RTC_AUDIO_PROCESSING
3527

3628
config COMP_GOOGLE_RTC_AUDIO_PROCESSING_SAMPLE_RATE_HZ
3729
depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
@@ -41,6 +33,16 @@ config COMP_GOOGLE_RTC_AUDIO_PROCESSING_SAMPLE_RATE_HZ
4133
Sets the sample rate for the memory buffer for the Google real-time
4234
communication audio processing.
4335

36+
config COMP_GOOGLE_RTC_AUDIO_PROCESSING_CHANNEL_MAX
37+
int "Max number of AEC channels"
38+
default 2
39+
help
40+
Sets the maximum number source/sink channels Google Real
41+
Time Communication Audio Processing will use for. This is a
42+
computation and memory budget tunable. Channel counts are
43+
retrieved at runtime, but channels higher than this number
44+
are ignored (on input) or cleared (output).
45+
4446
config COMP_GOOGLE_RTC_AUDIO_PROCESSING_MEMORY_BUFFER_SIZE_BYTES
4547
depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
4648
int "Memory buffer size for Google Real Time Communication Audio processing"
@@ -67,10 +69,12 @@ config COMP_GOOGLE_RTC_AUDIO_PROCESSING_MIC_HEADROOM_LINEAR
6769

6870
config GOOGLE_RTC_AUDIO_PROCESSING_MOCK
6971
bool "Google Real Time Communication Audio processing mock"
70-
default n
72+
default y if COMP_STUBS
7173
depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
7274
help
7375
Mock Google real-time communication audio processing.
7476
It allows for compilation check and basic audio flow checking.
7577

78+
endif # COMP_GOOGLE_RTC_AUDIO_PROCESSING
79+
7680
endmenu

0 commit comments

Comments
 (0)