Skip to content

Topology2: add sof-sdca-mic-4/8ch-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-4/8ch-id4 tplgs support#11013
bardliao wants to merge 2 commits into
thesofproject:mainfrom
bardliao:topology2-sdw-multiple-dmic

Conversation

@bardliao

Copy link
Copy Markdown
Collaborator

Add 4 channel and 8 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 from 17544ed to adf4c94 Compare July 20, 2026 14:32
bardliao added 2 commits July 21, 2026 12:41
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 1 channel, 4 channel and 8 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 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.

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