Skip to content

Commit

Permalink
Merge pull request #29 from kitakar5525/Surface3-OEMB
Browse files Browse the repository at this point in the history
Surface3-OEMB: add quirk for Surface 3 with broken DMI table
  • Loading branch information
qzed authored Jan 13, 2020
2 parents 749a4a6 + 9c1f1f4 commit 9933f3c
Show file tree
Hide file tree
Showing 3 changed files with 22 additions and 0 deletions.
7 changes: 7 additions & 0 deletions drivers/platform/x86/surface3-wmi.c
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,13 @@ static const struct dmi_system_id surface3_dmi_table[] = {
DMI_MATCH(DMI_PRODUCT_NAME, "Surface 3"),
},
},
{
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."),
DMI_MATCH(DMI_SYS_VENDOR, "OEMB"),
DMI_MATCH(DMI_PRODUCT_NAME, "OEMB"),
},
},
#endif
{ }
};
Expand Down
9 changes: 9 additions & 0 deletions sound/soc/codecs/rt5645.c
Original file line number Diff line number Diff line change
Expand Up @@ -3672,6 +3672,15 @@ static const struct dmi_system_id dmi_platform_data[] = {
},
.driver_data = (void *)&intel_braswell_platform_data,
},
{
.ident = "Microsoft Surface 3",
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."),
DMI_MATCH(DMI_SYS_VENDOR, "OEMB"),
DMI_MATCH(DMI_PRODUCT_NAME, "OEMB"),
},
.driver_data = (void *)&intel_braswell_platform_data,
},
{
/*
* Match for the GPDwin which unfortunately uses somewhat
Expand Down
6 changes: 6 additions & 0 deletions sound/soc/intel/common/soc-acpi-intel-cht-match.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,12 @@ static const struct dmi_system_id cht_table[] = {
DMI_MATCH(DMI_SYS_VENDOR, "Microsoft Corporation"),
DMI_MATCH(DMI_PRODUCT_NAME, "Surface 3"),
},
.callback = cht_surface_quirk_cb,
.matches = {
DMI_MATCH(DMI_BIOS_VENDOR, "American Megatrends Inc."),
DMI_MATCH(DMI_SYS_VENDOR, "OEMB"),
DMI_MATCH(DMI_PRODUCT_NAME, "OEMB"),
},
},
{ }
};
Expand Down

0 comments on commit 9933f3c

Please sign in to comment.