Skip to content

Topology2: add sof-sdca-mic-4ch-id4 tplgs support - #11013

Draft
bardliao wants to merge 2 commits into
thesofproject:mainfrom
bardliao:topology2-sdw-multiple-dmic
Draft

Topology2: add sof-sdca-mic-4ch-id4 tplgs support#11013
bardliao wants to merge 2 commits into
thesofproject:mainfrom
bardliao:topology2-sdw-multiple-dmic

Conversation

@bardliao

@bardliao bardliao commented Jul 20, 2026

Copy link
Copy Markdown
Collaborator

Add 4 channel sdca mic function topologies support.

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.

Pull request overview

This PR extends the Topology2 SDCA generic build targets to add 4-channel and 8-channel SoundWire DMIC (“SmartMic”) function topologies, and updates the Intel sdw-dmic-generic.conf platform fragment to make capture channel count/config/map configurable via new defines.

Changes:

  • Add new sof-sdca-mic-4ch-id4 and sof-sdca-mic-8ch-id4 topology build targets (via NUM_DMICS overrides).
  • Teach sdw-dmic-generic.conf to derive DMIC PCM channel count (and ch cfg/map) from NUM_DMICS when SDW_DMIC_PCM_CHANNELS=0, and propagate this into DAI/widget/PCM caps formats.

Reviewed changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
tools/topology/topology2/production/tplg-targets-sdca-generic.cmake Adds new SDCA mic tplg targets for 4ch and 8ch variants using NUM_DMICS overrides.
tools/topology/topology2/platform/intel/sdw-dmic-generic.conf Makes SDW DMIC capture channel count/config/map variable-driven and wires it through DAI/widgets/PCM caps.

Comment thread tools/topology/topology2/platform/intel/sdw-dmic-generic.conf Outdated
Comment thread tools/topology/topology2/platform/intel/sdw-dmic-generic.conf Outdated
@bardliao
bardliao force-pushed the topology2-sdw-multiple-dmic branch from 8d47619 to 17544ed Compare July 20, 2026 08:30

@lgirdwood lgirdwood left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

LGTM

@bardliao
bardliao force-pushed the topology2-sdw-multiple-dmic branch 2 times, most recently from adf4c94 to 0703731 Compare July 21, 2026 04:43
@bardliao

Copy link
Copy Markdown
Collaborator Author

Based on @shumingfan's test result, it seems it will duplicate ch0 to all other channels. I am trying to figure it out.

@bardliao
bardliao force-pushed the topology2-sdw-multiple-dmic branch 2 times, most recently from e9c75e2 to da93fe6 Compare July 24, 2026 09:06
bardliao added 2 commits July 28, 2026 16:32
Add NUM_DMICS to set SDW DMIC number. The value is 2 by default.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Add 4 channel sdca mic function topologies support.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@bardliao
bardliao force-pushed the topology2-sdw-multiple-dmic branch from da93fe6 to 69f23db Compare July 28, 2026 13:13
@bardliao bardliao changed the title Topology2: add sof-sdca-mic-4/8ch-id4 tplgs support Topology2: add sof-sdca-mic-4ch-id4 tplgs support Jul 28, 2026
@bardliao

Copy link
Copy Markdown
Collaborator Author

@singalsu Below error will happen if I set EFX_MIC_TDFB_PARAMS=line4_generic_pm10deg. Could you take a look when you are back?

[    5.067519] sof-audio-pci-intel-ptl 0000:00:1f.3: bytes control Microphone Capture TDFB bytes initial data size 1572 exceeds max 1024.
[    5.067528] sof-audio-pci-intel-ptl 0000:00:1f.3: failed updating IPC struct for control Microphone Capture TDFB bytes
[    5.067533] sof-audio-pci-intel-ptl 0000:00:1f.3: error: failed to load DSP topology -22

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.

4 participants