Skip to content

Commit b2f7fdb

Browse files
simontrimmerbardliao
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 <simont@opensource.cirrus.com> Fixes: 83c062a ("ASoC: Intel: sof_sdw: Add quirks for some new Lenovo laptops")
1 parent bdce1cb commit b2f7fdb

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

sound/soc/intel/boards/sof_sdw.c

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -631,9 +631,9 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
631631
.callback = sof_sdw_quirk_cb,
632632
.matches = {
633633
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
634-
DMI_EXACT_MATCH(DMI_PRODUCT_SKU, "3838")
634+
DMI_MATCH(DMI_PRODUCT_NAME, "83JX")
635635
},
636-
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS),
636+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
637637
},
638638
{
639639
.callback = sof_sdw_quirk_cb,
@@ -643,6 +643,21 @@ static const struct dmi_system_id sof_sdw_quirk_table[] = {
643643
},
644644
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
645645
},
646+
{
647+
.callback = sof_sdw_quirk_cb,
648+
.matches = {
649+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
650+
DMI_MATCH(DMI_PRODUCT_NAME, "83MC")
651+
},
652+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
653+
}, {
654+
.callback = sof_sdw_quirk_cb,
655+
.matches = {
656+
DMI_MATCH(DMI_SYS_VENDOR, "LENOVO"),
657+
DMI_MATCH(DMI_PRODUCT_NAME, "83NM")
658+
},
659+
.driver_data = (void *)(SOC_SDW_SIDECAR_AMPS | SOC_SDW_CODEC_MIC),
660+
},
646661
{
647662
.callback = sof_sdw_quirk_cb,
648663
.matches = {

0 commit comments

Comments
 (0)