diff mbox series

[2/2] ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 21QA and 21QB

Message ID 20241216033200.131362-3-yung-chuan.liao@linux.intel.com (mailing list archive)
State Superseded
Headers show
Series ASoC: Intel: sof_sdw: Update DMI matches for Lenovo models with SSIDs 233b, 233c | expand

Commit Message

Bard Liao Dec. 16, 2024, 3:31 a.m. UTC
From: Richard Fitzgerald <rf@opensource.cirrus.com>

Update the DMI match for a Lenovo laptop to the new DMI identifier.

This laptop ships with a different DMI identifier to what was expected,
and now has two identifiers.

Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
Fixes: eea00cd603b6 ("ASoC: Intel: sof_sdw: Add quirk for cs42l43 system using host DMICs")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
---
 sound/soc/intel/boards/sof_sdw.c | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

Comments

Mark Brown Dec. 16, 2024, 12:28 p.m. UTC | #1
On Mon, Dec 16, 2024 at 11:31:59AM +0800, Bard Liao wrote:

> Signed-off-by: Richard Fitzgerald <rf@opensource.cirrus.com>
> Fixes: eea00cd603b6 ("ASoC: Intel: sof_sdw: Add quirk for cs42l43 system using host DMICs")

This commit doesn't seem to exist.
diff mbox series

Patch

diff --git a/sound/soc/intel/boards/sof_sdw.c b/sound/soc/intel/boards/sof_sdw.c
index 139f4306dc87..9f721b88e606 100644
--- a/sound/soc/intel/boards/sof_sdw.c
+++ b/sound/soc/intel/boards/sof_sdw.c
@@ -637,7 +637,16 @@  static const struct dmi_system_id sof_sdw_quirk_table[] = {
 		.callback = sof_sdw_quirk_cb,
 		.matches = {
 			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
-			DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "233C")
+			DMI_MATCH(DMI_PRODUCT_NAME, "21QB")
+		},
+		/* Note this quirk excludes the CODEC mic */
+		.driver_data = (void *)(SOC_SDW_CODEC_MIC),
+	},
+	{
+		.callback = sof_sdw_quirk_cb,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+			DMI_MATCH(DMI_PRODUCT_NAME, "21QA")
 		},
 		/* Note this quirk excludes the CODEC mic */
 		.driver_data = (void *)(SOC_SDW_CODEC_MIC),