From 4789d623a93e3c44e1bc6f808c7ef4b1cf5cd6fa Mon Sep 17 00:00:00 2001 From: Ming Jen Tai Date: Fri, 29 Apr 2022 13:26:06 +0800 Subject: [PATCH] Add RTNR to MT8195 topology This commit adds RTNR to MT8195 with MAX98390 topology. Signed-off-by: Ming Jen Tai --- tools/topology/topology1/CMakeLists.txt | 1 + tools/topology/topology1/sof-mt8195-mt6359-rt1019-rt5682.m4 | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/topology/topology1/CMakeLists.txt b/tools/topology/topology1/CMakeLists.txt index ebfc9831b..ede126069 100644 --- a/tools/topology/topology1/CMakeLists.txt +++ b/tools/topology/topology1/CMakeLists.txt @@ -234,6 +234,7 @@ set(TPLGS "sof-mt8195-mt6359-rt1019-rt5682\;sof-mt8195-mt6359-rt1019-rt5682" "sof-mt8195-mt6359-rt1019-rt5682\;sof-mt8195-mt6359-rt1019-rt5682-dts\;-DDTS=`DTS'" "sof-mt8195-mt6359-rt1019-rt5682\;sof-mt8195-mt6359-max98390-rt5682" + "sof-mt8195-mt6359-rt1019-rt5682\;sof-mt8195-mt6359-max98390-rt5682-rtnr\;-DCHANNELS=2\;-DRTNR" "sof-mt8186-mt6366\;sof-mt8186-mt6366-rt1019-rt5682s" "sof-mt8186-mt6366\;sof-mt8186-mt6366-da7219-max98357" diff --git a/tools/topology/topology1/sof-mt8195-mt6359-rt1019-rt5682.m4 b/tools/topology/topology1/sof-mt8195-mt6359-rt1019-rt5682.m4 index 1c40ab6c8..49a413b35 100644 --- a/tools/topology/topology1/sof-mt8195-mt6359-rt1019-rt5682.m4 +++ b/tools/topology/topology1/sof-mt8195-mt6359-rt1019-rt5682.m4 @@ -52,7 +52,8 @@ PIPELINE_PCM_ADD( # Low Latency capture pipeline 3 on PCM 18 using max 2 channels of s16le # Set 2000us deadline with priority 0 on core 0 -PIPELINE_PCM_ADD(sof/pipe-passthrough-capture.m4, +PIPELINE_PCM_ADD( + ifdef(`RTNR', sof/pipe-rtnr-capture.m4, sof/pipe-passthrough-capture.m4), 3, 18, 2, s16le, 2000, 0, 0, 48000, 48000, 48000)