2020-08-23 20:25:29 +00:00
|
|
|
From 343739da78ef1ce9473603dc0b25d7840ee96aa9 Mon Sep 17 00:00:00 2001
|
2020-06-01 10:06:47 +00:00
|
|
|
From: Chih-Wei Huang <cwhuang@linux.org.tw>
|
|
|
|
Date: Tue, 18 Sep 2018 11:01:37 +0800
|
2020-08-18 04:06:58 +00:00
|
|
|
Subject: [PATCH 1/6] surface3-oemb
|
2020-06-01 10:06:47 +00:00
|
|
|
|
|
|
|
---
|
|
|
|
drivers/platform/x86/surface3-wmi.c | 7 +++++++
|
|
|
|
sound/soc/codecs/rt5645.c | 9 +++++++++
|
|
|
|
sound/soc/intel/common/soc-acpi-intel-cht-match.c | 8 ++++++++
|
|
|
|
3 files changed, 24 insertions(+)
|
|
|
|
|
|
|
|
diff --git a/drivers/platform/x86/surface3-wmi.c b/drivers/platform/x86/surface3-wmi.c
|
2020-07-30 18:43:04 +00:00
|
|
|
index 130b6f52a6001..801083aa56d6d 100644
|
2020-06-01 10:06:47 +00:00
|
|
|
--- a/drivers/platform/x86/surface3-wmi.c
|
|
|
|
+++ b/drivers/platform/x86/surface3-wmi.c
|
|
|
|
@@ -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
|
|
|
|
{ }
|
|
|
|
};
|
|
|
|
diff --git a/sound/soc/codecs/rt5645.c b/sound/soc/codecs/rt5645.c
|
2020-07-30 18:43:04 +00:00
|
|
|
index e2e1d5b03b381..5ff38592ba6db 100644
|
2020-06-01 10:06:47 +00:00
|
|
|
--- a/sound/soc/codecs/rt5645.c
|
|
|
|
+++ b/sound/soc/codecs/rt5645.c
|
2020-07-02 19:46:39 +00:00
|
|
|
@@ -3687,6 +3687,15 @@ static const struct dmi_system_id dmi_platform_data[] = {
|
2020-06-01 10:06:47 +00:00
|
|
|
},
|
|
|
|
.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
|
|
|
|
diff --git a/sound/soc/intel/common/soc-acpi-intel-cht-match.c b/sound/soc/intel/common/soc-acpi-intel-cht-match.c
|
2020-07-30 18:43:04 +00:00
|
|
|
index 2752dc9557334..ef36a316e2ed6 100644
|
2020-06-01 10:06:47 +00:00
|
|
|
--- a/sound/soc/intel/common/soc-acpi-intel-cht-match.c
|
|
|
|
+++ b/sound/soc/intel/common/soc-acpi-intel-cht-match.c
|
|
|
|
@@ -27,6 +27,14 @@ static const struct dmi_system_id cht_table[] = {
|
|
|
|
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"),
|
|
|
|
+ },
|
|
|
|
+ },
|
|
|
|
{ }
|
|
|
|
};
|
|
|
|
|
|
|
|
--
|
2020-07-30 18:43:04 +00:00
|
|
|
2.28.0
|
2020-06-01 10:06:47 +00:00
|
|
|
|