Skip to content

ASoC: SOF: topology: Use acpi mach from the machine driver#5665

Open
bardliao wants to merge 1 commit intothesofproject:topic/sof-devfrom
bardliao:fix-dmic-quirk
Open

ASoC: SOF: topology: Use acpi mach from the machine driver#5665
bardliao wants to merge 1 commit intothesofproject:topic/sof-devfrom
bardliao:fix-dmic-quirk

Conversation

@bardliao
Copy link
Collaborator

@bardliao bardliao commented Feb 6, 2026

The parameters may be changed by the machine driver based on the actual hardware configuration. We need to use the acpi mach from the machine driver.

The parameters may be changed by the machine driver based on the actual
hardware configuration. We need to use the acpi mach from the machine
driver.

Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
@@ -2530,8 +2531,12 @@ int snd_sof_load_topology(struct snd_soc_component *scomp, const char *file)
*/
bool no_fallback = strstr(file, "dummy");

Copy link
Collaborator

Choose a reason for hiding this comment

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

what issue does this fix?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

We use the SOC_SDW_PCH_DMIC quirk to indicate that the PCH DMIC is used. We will set mach_params->dmic_num = DMIC_DEFAULT_CHANNELS; to the mach_params from dev_get_platdata(card->dev) when the quirk is set. But the mach_params of the sof_sdw_get_tplg_files() function is from sdev->pdata. In other words, the mach_params->dmic_num of sof_pdata->machine remains 0 and it will cause the unsupported number of dmics: 0 issue.

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.

2 participants