]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 21Q6 and 21Q7
authorRichard Fitzgerald <rf@opensource.cirrus.com>
Mon, 16 Dec 2024 14:08:20 +0000 (22:08 +0800)
committerMark Brown <broonie@kernel.org>
Mon, 16 Dec 2024 14:28:57 +0000 (14:28 +0000)
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: 83c062ae81e8 ("ASoC: Intel: sof_sdw: Add quirks for some new Lenovo laptops")
Signed-off-by: Bard Liao <yung-chuan.liao@linux.intel.com>
Link: https://patch.msgid.link/20241216140821.153670-2-yung-chuan.liao@linux.intel.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/intel/boards/sof_sdw.c

index 810be7c949a5cea04a56dbb13507d80a6540678d..e20ab6bfa5dda27a1f6b0462266ddfc50d389cbc 100644 (file)
@@ -641,9 +641,17 @@ 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, "233B")
+                       DMI_MATCH(DMI_PRODUCT_NAME, "21Q6")
                },
-               .driver_data = (void *)(SOC_SDW_SIDECAR_AMPS),
+               .driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
+       },
+       {
+               .callback = sof_sdw_quirk_cb,
+               .matches = {
+                       DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
+                       DMI_MATCH(DMI_PRODUCT_NAME, "21Q7")
+               },
+               .driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
        },
 
        /* ArrowLake devices */