Skip to content

topology2: hda-generic: add 1ch and 2ch DMIC on PDM1 topologies - #11539

Closed
kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202611-topology2-hda-generic-pdm1
Closed

kv2019i wants to merge 1 commit into
thesofproject:mainfrom
kv2019i:202611-topology2-hda-generic-pdm1

Conversation

@kv2019i

@kv2019i kv2019i commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator

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

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>
@kv2019i
kv2019i requested review from bardliao, lgirdwood, singalsu and ujfalusi and a balanced review from Copilot November 25, 2026 14:17
@kv2019i

kv2019i commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

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.

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🟡 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

Comment on lines +29 to +37
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,\
@kv2019i

kv2019i commented Nov 25, 2026

Copy link
Copy Markdown
Collaborator Author

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.

@kv2019i kv2019i closed this Nov 25, 2026
@intel-sofci

Copy link
Copy Markdown

PR 11539: test results

Run date: 2026-11-25 15:13 UTC

Tested commit: f58b76953e04b0af81b44272491ad7f6ed50a58d

mtl pass rate lnl pass rate ptl pass rate wcl pass rate nvl pass rate

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants