All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] [thinkpad-acpi] Add T410s and T420s LED support
@ 2012-03-22 23:49 Jens Taprogge
  2012-03-23 19:39 ` Henrique de Moraes Holschuh
  0 siblings, 1 reply; 9+ messages in thread
From: Jens Taprogge @ 2012-03-22 23:49 UTC (permalink / raw)
  To: Henrique de Moraes Holschuh; +Cc: platform-driver-x86

A new LED is integrated into the Microphone mute button.  On the other
hand many LEDs are missing and have been masked out from useful_leds.

The mute LED is not added to the TPACPI_SAFE_LEDS.  Safe handling of
muting should first be worked out.  I have tested all the masked out
LEDs (attached to dock) but I could not observe any effect.

Signed-off-by: Jens Taprogge <jens.taprogge@taprogge.org>
---
 Documentation/laptops/thinkpad-acpi.txt |    4 +++-
 drivers/platform/x86/thinkpad_acpi.c    |    6 ++++++
 2 files changed, 9 insertions(+), 1 deletions(-)

diff --git a/Documentation/laptops/thinkpad-acpi.txt b/Documentation/laptops/thinkpad-acpi.txt
index 9d66682..de7ddac 100644
--- a/Documentation/laptops/thinkpad-acpi.txt
+++ b/Documentation/laptops/thinkpad-acpi.txt
@@ -826,7 +826,9 @@ mapping:
 	9 - dock status 2
 	10, 11 - (unknown)
 	12 - thinkvantage
-	13, 14, 15 - (unknown)
+	13 - (unknown)
+	14 - mute mic
+	15 - (unknown)
 
 All of the above can be turned on and off and can be made to blink.
 
diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
index ea0c607..a0bc79f 100644
--- a/drivers/platform/x86/thinkpad_acpi.c
+++ b/drivers/platform/x86/thinkpad_acpi.c
@@ -169,6 +169,7 @@ enum tpacpi_hkey_event_t {
 	TP_HKEY_EV_VOL_UP		= 0x1015, /* Volume up or unmute */
 	TP_HKEY_EV_VOL_DOWN		= 0x1016, /* Volume down or unmute */
 	TP_HKEY_EV_VOL_MUTE		= 0x1017, /* Mixer output mute */
+	TP_HKEY_EV_VOL_MUTE_MIC		= 0x101b, /* Microphone mute */
 
 	/* Reasons for waking up from S3/S4 */
 	TP_HKEY_EV_WKUP_S3_UNDOCK	= 0x2304, /* undock requested, S3 */
@@ -5055,6 +5056,8 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
 	"tpacpi::unknown_led2",
 	"tpacpi::unknown_led3",
 	"tpacpi::thinkvantage",
+	"tpacpi::unknown_led4",
+	"tpacpi::mute_mic",
 };
 #define TPACPI_SAFE_LEDS	0x1081U
 
@@ -5272,6 +5275,9 @@ static const struct tpacpi_quirk led_useful_qtable[] __initconst = {
 	TPACPI_Q_IBM('7', 'F', 0x1f97), /* Z61* (1) */
 	TPACPI_Q_IBM('7', 'B', 0x1fb7), /* X60 (1) */
 
+	TPACPI_Q_LNV('6', 'U', 0x4087), /* T410s */
+	TPACPI_Q_LNV('8', 'C', 0x4087), /* T420s */
+
 	/* (1) - may have excess leds enabled on MSB */
 
 	/* Defaults (order matters, keep last, don't reorder!) */
-- 
1.7.5.4

^ permalink raw reply related	[flat|nested] 9+ messages in thread

end of thread, other threads:[~2012-03-28 16:17 UTC | newest]

Thread overview: 9+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-03-22 23:49 [PATCH] [thinkpad-acpi] Add T410s and T420s LED support Jens Taprogge
2012-03-23 19:39 ` Henrique de Moraes Holschuh
2012-03-23 19:43   ` Matthew Garrett
2012-03-23 20:07     ` Jens Taprogge
2012-03-23 23:38     ` Henrique de Moraes Holschuh
2012-03-24  0:05       ` Jens Taprogge
2012-03-24  2:50         ` Henrique de Moraes Holschuh
2012-03-24 15:44           ` Jens Taprogge
2012-03-28 16:16             ` Takashi Iwai

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.