@@ -15,8 +15,6 @@ config COMP_GOOGLE_HOTWORD_DETECT
1515config 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,6 +23,8 @@ 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
26+ if COMP_GOOGLE_RTC_AUDIO_PROCESSING
27+
2828config COMP_GOOGLE_RTC_AUDIO_PROCESSING_SAMPLE_RATE_HZ
2929 depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
3030 int "Sample rate for Google Real Time Communication Audio processing"
@@ -33,21 +33,15 @@ config COMP_GOOGLE_RTC_AUDIO_PROCESSING_SAMPLE_RATE_HZ
3333 Sets the sample rate for the memory buffer for the Google real-time
3434 communication audio processing.
3535
36- config COMP_GOOGLE_RTC_AUDIO_PROCESSING_NUM_CHANNELS
37- depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
38- int "Number of channels to process for Google Real Time Communication Audio processing"
39- default 4
40- help
41- Sets the number of channels to process in the Google real-time
42- communication audio processing.
43-
44- config COMP_GOOGLE_RTC_AUDIO_PROCESSING_NUM_AEC_REFERENCE_CHANNELS
45- depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
46- int "Number of AEC reference channels for Google Real Time Communication Audio processing"
36+ config COMP_GOOGLE_RTC_AUDIO_PROCESSING_CHANNEL_MAX
37+ int "Max number of AEC channels"
4738 default 2
4839 help
49- Sets the number AEC reference channels in the Google real-time
50- communication audio processing.
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).
5145
5246config COMP_GOOGLE_RTC_AUDIO_PROCESSING_MEMORY_BUFFER_SIZE_BYTES
5347 depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
@@ -75,10 +69,12 @@ config COMP_GOOGLE_RTC_AUDIO_PROCESSING_MIC_HEADROOM_LINEAR
7569
7670config GOOGLE_RTC_AUDIO_PROCESSING_MOCK
7771 bool "Google Real Time Communication Audio processing mock"
78- default n
72+ default y if COMP_STUBS
7973 depends on COMP_GOOGLE_RTC_AUDIO_PROCESSING
8074 help
8175 Mock Google real-time communication audio processing.
8276 It allows for compilation check and basic audio flow checking.
8377
78+ endif # COMP_GOOGLE_RTC_AUDIO_PROCESSING
79+
8480endmenu
0 commit comments