Skip to content

Commit 7c449ef

Browse files
rfvirgilbroonie
authored andcommitted
ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 21Q6 and 21Q7
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 <[email protected]> Fixes: 83c062a ("ASoC: Intel: sof_sdw: Add quirks for some new Lenovo laptops") Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent fac04ef commit 7c449ef

File tree

1 file changed

+10
-2
lines changed

1 file changed

+10
-2
lines changed

sound/soc/intel/boards/sof_sdw.c

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -641,9 +641,17 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
641641
.callback = sof_sdw_quirk_cb,
642642
.matches = {
643643
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
644-
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "233B")
644+
DMI_MATCH(DMI_PRODUCT_NAME, "21Q6")
645645
},
646-
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS),
646+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
647+
},
648+
{
649+
.callback = sof_sdw_quirk_cb,
650+
.matches = {
651+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
652+
DMI_MATCH(DMI_PRODUCT_NAME, "21Q7")
653+
},
654+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
647655
},
648656

649657
/* ArrowLake devices */

0 commit comments

Comments
 (0)