summaryrefslogtreecommitdiff
path: root/include/linux/thinkpad_acpi.h
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2013-10-16 23:10:31 +0200
committerTakashi Iwai <tiwai@suse.de>2013-10-17 14:38:44 +0200
commit420f9739a62cdb027f5580d25c813501ff93aa6f (patch)
tree85e0bb1cb001b99c5ac449e92c86e141706588f8 /include/linux/thinkpad_acpi.h
parent1d198f26c98e6501659d741d530f7b65e4b7aec3 (diff)
downloadlwn-420f9739a62cdb027f5580d25c813501ff93aa6f.tar.gz
lwn-420f9739a62cdb027f5580d25c813501ff93aa6f.zip
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 <alex.hung@canonical.com> and Takashi Iwai <tiwai@suse.de> for writing parts of this patch. Signed-off-by: David Henningsson <david.henningsson@canonical.com> Acked-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to 'include/linux/thinkpad_acpi.h')
-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