TPACPI: Make W510 microphone LED working
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
@@ -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 0x5081Ustatic 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
Quoted 1 line · Marek Vasut
Signed-off-by Marek Vasut <[email protected]>
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
Dear Henrique de Moraes Holschuh,
Quoted 4 lines · Marek Vasut
Quoted 1 line
Signed-off-by Marek Vasut <[email protected]>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 0x5081UThis, 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