Skip to contentSkip to conversation

TPACPI: Make W510 microphone LED working

PATCH In review Marek Vasut 2 participants 3 messages Apr 8, 2012 – Apr 9, 2012 x86 platform drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 TPACPI: Make W510 microphone LED working

---
 drivers/platform/x86/thinkpad_acpi.c |    6 +++++-
 1 files changed, 5 insertions(+), 1 deletions(-)
drivers/platform/x86/thinkpad_acpi.c +5 -1
index d68c000..9cd366a 100644
@@ -5055,8 +5055,10 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
 	"tpacpi::unknown_led2",
 	"tpacpi::unknown_led3",
 	"tpacpi::thinkvantage",
+	"tpacpi::unknown_led4",
+	"tpacpi::microphone",
 };
-#define TPACPI_SAFE_LEDS	0x1081U
+#define TPACPI_SAFE_LEDS	0x5081U
 
 static inline bool tpacpi_is_led_restricted(const unsigned int led)
 {
@@ -5274,6 +5276,8 @@ static const struct tpacpi_quirk led_useful_qtable[] __initconst = {
 
 	/* (1) - may have excess leds enabled on MSB */
 
+	TPACPI_Q_LNV('6', 'N', 0x43bf), /* W510 */
+
 	/* Defaults (order matters, keep last, don't reorder!) */
 	{ /* Lenovo */
 	  .vendor = PCI_VENDOR_ID_LENOVO,
Signature · 1 line
1.7.9.1
#1 lore raw
Quoted 1 line · Marek Vasut

NAK (but noted that the W510 supports the MIC led).

Please look at the recent thread about the same issue on the T410/T420 on the list archives. I am still waiting for some direction from that thread.

drivers/platform/x86/thinkpad_acpi.c static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = { · line 5061

Quoted 2 lines
drivers/platform/x86/thinkpad_acpi.c +1 -1
-#define TPACPI_SAFE_LEDS	0x1081U
+#define TPACPI_SAFE_LEDS	0x5081U

This, I really don't want.

Signature · 4 lines
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh
#2 lore raw

Dear Henrique de Moraes Holschuh,

Quoted 4 lines · Marek Vasut
Quoted 1 line

NAK (but noted that the W510 supports the MIC led).

Well, at least some value was in this patch.

Quoted 7 lines

Please look at the recent thread about the same issue on the T410/T420 on the list archives. I am still waiting for some direction from that thread.

drivers/platform/x86/thinkpad_acpi.c static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = { · line 5061

Quoted 2 lines
drivers/platform/x86/thinkpad_acpi.c +1 -1
-#define TPACPI_SAFE_LEDS	0x1081U
+#define TPACPI_SAFE_LEDS	0x5081U

This, I really don't want.

Ok, honestly, I'm pretty new to acpi hacking, this is my first try. I'll check the thread and hopefully get back to this.

Best regards,
Marek Vasut