diff mbox series

[1/1,SRU,OEM-5.14] UBUNTU: SAUCE: ASoC: rt715:add micmute led control for Dell XPS 9315

Message ID 20220322050613.1623802-2-chris.chiu@canonical.com
State New
Headers show
Series Enable the mic-mute led on Dell XPS 9315 | expand

Commit Message

Chris Chiu March 22, 2022, 5:06 a.m. UTC
BugLink: https://bugs.launchpad.net/bugs/1965846

Dell XPS 9315 needs Dell's DMI based quirk to trigger the dell-privacy
micmute led control.

Signed-off-by: Chris Chiu <chris.chiu@canonical.com>
---
 sound/soc/codecs/rt715-sdca.c | 7 +++++++
 sound/soc/codecs/rt715.c      | 7 +++++++
 2 files changed, 14 insertions(+)
diff mbox series

Patch

diff --git a/sound/soc/codecs/rt715-sdca.c b/sound/soc/codecs/rt715-sdca.c
index a61e9d52ca4c..9181ed29ba84 100644
--- a/sound/soc/codecs/rt715-sdca.c
+++ b/sound/soc/codecs/rt715-sdca.c
@@ -369,6 +369,13 @@  static const struct dmi_system_id micmute_led_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_SKU, "0A3E"),
 		},
 	},
+	{
+		.callback = dmi_matched,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_SKU, "0B14"),
+		},
+	},
 	{},
 };
 
diff --git a/sound/soc/codecs/rt715.c b/sound/soc/codecs/rt715.c
index 4dbd870009b8..4962347ba4a4 100644
--- a/sound/soc/codecs/rt715.c
+++ b/sound/soc/codecs/rt715.c
@@ -95,6 +95,13 @@  static const struct dmi_system_id micmute_led_dmi_table[] = {
 			DMI_MATCH(DMI_PRODUCT_SKU, "0A3E"),
 		},
 	},
+	{
+		.callback = dmi_matched,
+		.matches = {
+			DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
+			DMI_MATCH(DMI_PRODUCT_SKU, "0B14"),
+		},
+	},
 	{},
 };