Skip to content

ASoC: SOF: Intel: hda: add quirk for Xiaomi Redmi Book 16 with PDM1 dmic - #5895

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

kv2019i wants to merge 1 commit 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: #5894

@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
Add a quirk to force a PDM1 DMIC topology on systems where PCH DMIC
is connected to PDM1 and not PDM0.

Link: thesofproject#5894
Signed-off-by: Kai Vehmanen <kai.vehmanen@linux.intel.com>
@kv2019i
kv2019i marked this pull request as ready for review November 24, 2026 11:25
Copilot AI lite review requested due to automatic review settings November 24, 2026 11:25
@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.

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