Skip to content

Commit 17615e4

Browse files
simontrimmerbroonie
authored andcommitted
ASoC: Intel: sof_sdw: Fix DMI match for Lenovo 83JX, 83MC and 83NM
Update the DMI match for a Lenovo laptop to a new DMI identifier. This laptop ships with a different DMI identifier to what was expected and now has three match entries. It also has the DMICs connected to the host rather than the cs42l43 codec. Signed-off-by: Simon Trimmer <[email protected]> Fixes: 83c062a ("ASoC: Intel: sof_sdw: Add quirks for some new Lenovo laptops") Reviewed-by: Liam Girdwood <[email protected]> Reviewed-by: Ranjani Sridharan <[email protected]> Signed-off-by: Bard Liao <[email protected]> Link: https://patch.msgid.link/[email protected] Signed-off-by: Mark Brown <[email protected]>
1 parent c9e0576 commit 17615e4

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

sound/soc/intel/boards/sof_sdw.c

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -608,9 +608,9 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
608608
.callback = sof_sdw_quirk_cb,
609609
.matches = {
610610
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
611-
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "3838")
611+
DMI_MATCH(DMI_PRODUCT_NAME, "83JX")
612612
},
613-
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS),
613+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
614614
},
615615
{
616616
.callback = sof_sdw_quirk_cb,
@@ -620,6 +620,21 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
620620
},
621621
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
622622
},
623+
{
624+
.callback = sof_sdw_quirk_cb,
625+
.matches = {
626+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
627+
DMI_MATCH(DMI_PRODUCT_NAME, "83MC")
628+
},
629+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
630+
}, {
631+
.callback = sof_sdw_quirk_cb,
632+
.matches = {
633+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
634+
DMI_MATCH(DMI_PRODUCT_NAME, "83NM")
635+
},
636+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
637+
},
623638
{
624639
.callback = sof_sdw_quirk_cb,
625640
.matches = {

0 commit comments

Comments
 (0)