Repository navigation
Conversation
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: thesofproject/linux#5895
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
|
Given small but steady stream of PDM1 designs (see thesofproject/linux#5895 ), this adds the required HDA generic topology to newer IPC4 platforms. We have not yet seen products that need it, but given history, it is likely only matter of time, so maybe best to just add a variant for this. @singalsu to check before merge. |
There was a problem hiding this comment.
🟡 Changes recommended
The IPC4 PDM1 targets lack NHLT preprocessing and distinct NHLT binaries, so their PDM enable overrides cannot correct BIOS routing to PDM0.
1 open issue
What changed in this PR
Adds topology2 HDA-generic build targets for systems with digital microphones connected to PDM1, supporting the linked Linux topology-selection quirk.
Changes:
- Adds a true mono target using only PDM1 mic A.
- Adds a stereo target using PDM1 mics A and B, preserving the existing two-channel capture processing.
- Reuses the existing topology template and disables PDM0 in both targets.
| File | Description |
|---|---|
tools/topology/topology2/production/tplg-targets-hda-generic.cmake |
Registers mono and stereo PDM1 variants with explicit microphone-enable overrides. |
Review effort: Balanced
| 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,\ |
|
Ok, closing. This would be only needed if PDM1 stereo/mono config was used, and the NHLT blob would be wrong in BIOS. So two rare events. Closing for now. |
PR 11539: test resultsRun date: 2026-11-25 15:13 UTC Tested commit: f58b76953e04b0af81b44272491ad7f6ed50a58d |

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:
Link: thesofproject/linux#5895