Skip to content

ASoC: SOF: Intel: hda: add quirk for Fujitsu laptops with PDM1 dmic - #5895

Open
kv2019i wants to merge 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:202608-pdm1-quirk
Open

kv2019i wants to merge 2 commits into
thesofproject:topic/sof-devfrom
kv2019i:202608-pdm1-quirk

Conversation

@kv2019i

@kv2019i kv2019i commented Aug 25, 2026 •

Copy link
Copy Markdown
Collaborator

Add a quirk to force a PDM1 DMIC topology on systems where PCH DMIC is connected to PDM1 and not not PDM0.

Link: #5949

@kv2019i

kv2019i commented Aug 25, 2026

Copy link
Copy Markdown
Collaborator Author

V2:

  • fix build error due to dmi.h missing

Copilot AI left a comment

Copy link
Copy Markdown

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 adds a platform-specific quirk to select an alternate SOF HDA generic topology when the internal DMIC array is wired to PDM1 (as reported for the Xiaomi Redmi Book 16 2025 / TM2415), instead of relying solely on the NHLT DMIC-count-based topology selection.

Changes:

  • Add support in SOF Intel HDA generic machine selection to consult a machine_quirk callback for an alternate machine/topology.
  • Add a DMI-based quirk in the Intel HDA ACPI match table intended to force a PDM1 DMIC topology for the affected Xiaomi model.

Reviewed changes

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

File Description
sound/soc/sof/intel/hda.c Adds machine_quirk handling to allow overriding the default HDA generic machine/topology selection.
sound/soc/intel/common/soc-acpi-intel-hda-match.c Introduces a DMI match and alternate mach/topology intended to force a PDM1 DMIC topology on the target system.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread sound/soc/sof/intel/hda.c Resolved
bardliao
bardliao previously approved these changes Sep 21, 2026
@kv2019i

kv2019i commented Nov 24, 2026

Copy link
Copy Markdown
Collaborator Author

V2 pushed:

  • fixed issues raised in review
  • @bardliao @ujfalusi the original bug reporter has not responded, but shall we just push forward with this?

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🟡 Changes recommended

The DMI condition targets “Redmi Book Pro 16 2025” while the documented hardware is “Redmi Book 16 2025” and the required dmidecode output remains unavailable, so the topology may not be selected.

1 open issue
2 resolved since last review

Review effort: Lite

{
.matches = {
DMI_MATCH(DMI_SYS_VENDOR, "XIAOMI"),
DMI_MATCH(DMI_PRODUCT_NAME, "Redmi Book Pro 16 2025"),
@bardliao

Copy link
Copy Markdown
Collaborator

V2 pushed:

  • fixed issues raised in review
  • @bardliao @ujfalusi the original bug reporter has not responded, but shall we just push forward with this?

Yes, at least it provides a mechanism to use a specific topology.

bardliao
bardliao previously approved these changes Nov 24, 2026
@kv2019i

kv2019i commented Nov 27, 2026

Copy link
Copy Markdown
Collaborator Author

Marking with DNM label. We need to get at least one known-to-work DMI data set before submitting upstream.

… dmic

Add a quirk to force a PDM1 DMIC topology on systems where PCH DMIC
is connected to PDM1 and not PDM0.

Link: thesofproject#5949
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
…EBOOK E5512

Fujitsu LIFEBOOK E5512 has the PCH DMIC connected to PDM1, so add it
to the PDM1 DMIC quirk table.

The SKU reported by DMI is a generic "SK00", so match on the board name
instead to keep the quirk specific to this model.

Link: thesofproject#5949
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
Copilot AI lite review requested due to automatic review settings December 3, 2026 13:08
@kv2019i kv2019i changed the title ASoC: SOF: Intel: hda: add quirk for Xiaomi Redmi Book 16 with PDM1 dmic ASoC: SOF: Intel: hda: add quirk for Fujitsu laptops with PDM1 dmic Dec 3, 2026
@kv2019i

kv2019i commented Dec 3, 2026

Copy link
Copy Markdown
Collaborator Author

V3 pushed:

  • no response from the Xiaomi laptop user, so switched to Fujitsu cases where we have DMI data available
  • added support for two models

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

The hardware-specific DMI override depends on an external SOF PDM1 topology and requires validation on the listed Fujitsu systems to confirm exact model matching, topology compatibility, and codec behavior.

1 open issue

Review effort: Lite

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

🔵 Needs a closer look

Unavailable hardware and firmware artifacts prevent on-device validation of DMI matching and PDM1 topology loading and recording with deployed SOF firmware on both LIFEBOOK models.

1 open issue

Review effort: Balanced

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