From 5182dd334faae353d3ec3cc83843abe080cb07d0 Mon Sep 17 00:00:00 2001 From: Brent Lu Date: Tue, 30 Jul 2024 21:10:07 +0800 Subject: [PATCH] Fixup! ASoC: SOF: Intel: hda: refactoring topology name fixup for SDW mach In original design, dmic_num is zero if link_mask is more than two bits even there are PCH DMIC on board. We need to keep this logic after refactoring. Signed-off-by: Brent Lu --- sound/soc/sof/intel/hda.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sound/soc/sof/intel/hda.c b/sound/soc/sof/intel/hda.c index b98b8c41dc0802..2f87e43214e66b 100644 --- a/sound/soc/sof/intel/hda.c +++ b/sound/soc/sof/intel/hda.c @@ -1282,6 +1282,8 @@ struct snd_soc_acpi_mach *hda_machine_select(struct snd_sof_dev *sdev) */ if (hweight_long(mach->link_mask) <= 2) dmic_fixup = true; + else + mach->mach_params.dmic_num = 0; } else { if (mach->tplg_quirk_mask & SND_SOC_ACPI_TPLG_INTEL_DMIC_NUMBER) dmic_fixup = true;