From 912408822cc21fd2e6308f55864b7ca91bf8f07c Mon Sep 17 00:00:00 2001 From: Rander Wang Date: Fri, 3 Mar 2023 16:35:20 +0800 Subject: [PATCH] topology2: add google-rtc-aec-reference Top topology can include this conf file to enable google rtc aec Signed-off-by: Rander Wang --- .../intel/google-rtc-aec-reference.conf | 98 +++++++++++++++++++ 1 file changed, 98 insertions(+) create mode 100644 tools/topology/topology2/platform/intel/google-rtc-aec-reference.conf diff --git a/tools/topology/topology2/platform/intel/google-rtc-aec-reference.conf b/tools/topology/topology2/platform/intel/google-rtc-aec-reference.conf new file mode 100644 index 000000000..e7c641468 --- /dev/null +++ b/tools/topology/topology2/platform/intel/google-rtc-aec-reference.conf @@ -0,0 +1,98 @@ +Object.Pipeline.google-rtc-aec-capture [ + { + index 18 + Object.Widget.pipeline.1 { + stream_name "DMIC0 RTC AEC" + } + + Object.Widget.google-rtc-aec.1 { + Object.Base.input_pin_binding.1 { + input_pin_binding_name "module-copier.18.1" + } + + Object.Base.input_pin_binding.2 { + input_pin_binding_name $GOOGLE_RTC_AEC_REF_SOURCE + } + } + } +] + +Object.Pipeline.host-gateway-capture[ + { + index 19 + + Object.Widget.copier.1 { + stream_name "DMIC0 AEC" + } + } +] + +Object.Pipeline.gain-capture [ + { + index 20 + + Object.Widget.copier.1 { + stream_name "DMIC0 AN" + } + + Object.Widget.gain.1 { + Object.Control.mixer.1 { + name 'AN Volume' + } + } + } +] + +Object.PCM.pcm [ + { + name "DMIC0 RTC AEC" + id 27 + direction "capture" + Object.Base.fe_dai.1 { + name "DMIC0 RTC AEC" + } + + Object.PCM.pcm_caps.1 { + name "DMIC0 AEC" + # only 32-bit capture supported now + formats 'S32_LE' + channels_min $NUM_DMICS + channels_max $NUM_DMICS + } + } + { + name "DMIC0 RTC AEC NS" + id 28 + direction "capture" + Object.Base.fe_dai.1 { + name "DMIC0 RTC AEC NS" + } + + Object.PCM.pcm_caps.1 { + name "DMIC0 AN" + # only 32-bit capture supported now + formats 'S32_LE' + channels_min $NUM_DMICS + channels_max $NUM_DMICS + } + } +] + +Object.Base.route [ + { + source $DMIC0_DAI_PIPELINE_SRC + sink module-copier.18.1 + } + { + source $GOOGLE_RTC_AEC_REF_SOURCE + sink "google-rtc-aec.18.1" + } + { + source "module-copier.18.2" + sink "copier.host.19.1" + } + { + source "module-copier.18.2" + sink "gain.20.1" + } +]