aboutsummaryrefslogtreecommitdiff
path: root/include/linux
diff options
context:
space:
mode:
authorDavid Henningsson <[email protected]>2013-10-16 23:10:31 +0200
committerTakashi Iwai <[email protected]>2013-10-17 14:38:44 +0200
commit420f9739a62cdb027f5580d25c813501ff93aa6f (patch)
tree85e0bb1cb001b99c5ac449e92c86e141706588f8 /include/linux
parent1d198f26c98e6501659d741d530f7b65e4b7aec3 (diff)
thinkpad-acpi: Add mute and mic-mute LED functionality
The LEDs are currently not visible to userspace, for security reasons. They are exported through thinkpad_acpi.h for use by the snd-hda-intel driver. Thanks to Alex Hung <[email protected]> and Takashi Iwai <[email protected]> for writing parts of this patch. Signed-off-by: David Henningsson <[email protected]> Acked-by: Henrique de Moraes Holschuh <[email protected]> Signed-off-by: Takashi Iwai <[email protected]>
Diffstat (limited to 'include/linux')
-rw-r--r--include/linux/thinkpad_acpi.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/linux/thinkpad_acpi.h b/include/linux/thinkpad_acpi.h
new file mode 100644
index 000000000000..361de59a2285
--- /dev/null
+++ b/include/linux/thinkpad_acpi.h
@@ -0,0 +1,15 @@
+#ifndef __THINKPAD_ACPI_H__
+#define __THINKPAD_ACPI_H__
+
+/* These two functions return 0 if success, or negative error code
+ (e g -ENODEV if no led present) */
+
+enum {
+ TPACPI_LED_MUTE,
+ TPACPI_LED_MICMUTE,
+ TPACPI_LED_MAX,
+};
+
+int tpacpi_led_set(int whichled, bool on);
+
+#endif