summaryrefslogtreecommitdiffstats
path: root/0002-thinkpad_acpi-Support-micmute-LED.patch
diff options
context:
space:
mode:
Diffstat (limited to '0002-thinkpad_acpi-Support-micmute-LED.patch')
-rw-r--r--0002-thinkpad_acpi-Support-micmute-LED.patch41
1 files changed, 41 insertions, 0 deletions
diff --git a/0002-thinkpad_acpi-Support-micmute-LED.patch b/0002-thinkpad_acpi-Support-micmute-LED.patch
new file mode 100644
index 0000000..462dbab
--- /dev/null
+++ b/0002-thinkpad_acpi-Support-micmute-LED.patch
@@ -0,0 +1,41 @@
+From f35169d9071766afaf7192801978fcc0ab82ee08 Mon Sep 17 00:00:00 2001
+From: "Jason A. Donenfeld" <Jason@zx2c4.com>
+Date: Thu, 22 Aug 2013 15:43:15 +0200
+Subject: [PATCH 2/3] thinkpad_acpi: Support micmute LED
+
+The micmute LED is currently unused. This patch allows it to be hooked
+up to various LED triggers.
+
+Signed-off-by: Jason A. Donenfeld <Jason@zx2c4.com>
+---
+ drivers/platform/x86/thinkpad_acpi.c | 6 ++++--
+ 1 file changed, 4 insertions(+), 2 deletions(-)
+
+diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
+index 54d31c0..33b23cb 100644
+--- a/drivers/platform/x86/thinkpad_acpi.c
++++ b/drivers/platform/x86/thinkpad_acpi.c
+@@ -5050,8 +5050,10 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
+ "tpacpi::unknown_led2",
+ "tpacpi::unknown_led3",
+ "tpacpi::thinkvantage",
++ "tpacpi::unknown_led4",
++ "tpacpi::micmute"
+ };
+-#define TPACPI_SAFE_LEDS 0x1081U
++#define TPACPI_SAFE_LEDS 0x5081U
+
+ static inline bool tpacpi_is_led_restricted(const unsigned int led)
+ {
+@@ -5274,7 +5276,7 @@ static const struct tpacpi_quirk led_useful_qtable[] __initconst = {
+ { /* Lenovo */
+ .vendor = PCI_VENDOR_ID_LENOVO,
+ .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY,
+- .quirks = 0x1fffU,
++ .quirks = 0x5fffU,
+ },
+ { /* IBM ThinkPads with no EC version string */
+ .vendor = PCI_VENDOR_ID_IBM,
+--
+1.8.3.2
+