From f58b76953e04b0af81b44272491ad7f6ed50a58d Mon Sep 17 00:00:00 2001 From: Kai Vehmanen Date: Wed, 25 Nov 2026 15:26:58 +0200 Subject: [PATCH] topology2: hda-generic: add 1ch and 2ch DMIC on PDM1 topologies Add sof-hda-generic-1ch-pdm1 and sof-hda-generic-2ch-pdm1 for platforms where the digital microphones are connected to PDM controller 1 instead of PDM0. The topology1 equivalents (stable-v2.2) were generated with -DPDM1 using STEREO_PDM1 in platform/intel/dmic.m4. In topology2 the existing PDM{0,1}_MIC_{A,B}_ENABLE variables already describe the routing, so only new build targets are needed: - 2ch-pdm1: same as 2ch, with mic A and B enabled on PDM1 and PDM0 disabled. - 1ch-pdm1: same as 1ch, with only mic A on PDM1 enabled. Note that the topology1 1ch-pdm1 was built with the same flags as 2ch-pdm1 and was effectively stereo; here it is a true mono configuration. Link: https://github.com/thesofproject/linux/pull/5895 Signed-off-by: Kai Vehmanen --- .../production/tplg-targets-hda-generic.cmake | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tools/topology/topology2/production/tplg-targets-hda-generic.cmake b/tools/topology/topology2/production/tplg-targets-hda-generic.cmake index 72872d110a4d..fa3cfb9421d4 100644 --- a/tools/topology/topology2/production/tplg-targets-hda-generic.cmake +++ b/tools/topology/topology2/production/tplg-targets-hda-generic.cmake @@ -24,10 +24,20 @@ EFX_HDA_MIC_TDFB_PARAMS=line2_pass,EFX_HDA_MIC_DRC_PARAMS=passthrough,DOLBY_DAX_ # 2 or 4 DMIC, no NHLT blob included in topology "sof-hda-generic\;sof-hda-generic-1ch\;HDA_CONFIG=mix,NUM_DMICS=1,PDM0_MIC_B_ENABLE=0" +# Mono DMIC on PDM1 (mic A) instead of PDM0 +"sof-hda-generic\;sof-hda-generic-1ch-pdm1\;HDA_CONFIG=mix,NUM_DMICS=1,\ +PDM0_MIC_A_ENABLE=0,PDM0_MIC_B_ENABLE=0,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=0" + "sof-hda-generic\;sof-hda-generic-2ch\;HDA_CONFIG=mix,NUM_DMICS=2,\ DMIC0_ENHANCED_CAPTURE=true,EFX_DMIC0_TDFB_PARAMS=line2_generic_pm10deg,\ EFX_DMIC0_DRC_PARAMS=dmic_default" +# Stereo DMIC on PDM1 instead of PDM0 +"sof-hda-generic\;sof-hda-generic-2ch-pdm1\;HDA_CONFIG=mix,NUM_DMICS=2,\ +PDM0_MIC_A_ENABLE=0,PDM0_MIC_B_ENABLE=0,PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,\ +DMIC0_ENHANCED_CAPTURE=true,EFX_DMIC0_TDFB_PARAMS=line2_generic_pm10deg,\ +EFX_DMIC0_DRC_PARAMS=dmic_default" + "sof-hda-generic\;sof-hda-generic-4ch\;HDA_CONFIG=mix,NUM_DMICS=4,\ PDM1_MIC_A_ENABLE=1,PDM1_MIC_B_ENABLE=1,DMIC0_ENHANCED_CAPTURE=true,\ EFX_DMIC0_TDFB_PARAMS=line4_pass,EFX_DMIC0_DRC_PARAMS=dmic_default"