Guest User

Untitled

a guest
Mar 25th, 2012
132
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. From c1d0933c6adebd86e235363fa47cf281bc5253e3 Mon Sep 17 00:00:00 2001
  2. From: Chris Van Hoof <vanhoof@canonical.com>
  3. Date: Mon, 19 Dec 2011 15:51:17 -0500
  4. Subject: [PATCH] adding experimental mic mute led definition
  5.  
  6. ---
  7. drivers/platform/x86/thinkpad_acpi.c | 6 ++++--
  8. 1 files changed, 4 insertions(+), 2 deletions(-)
  9.  
  10. diff --git a/drivers/platform/x86/thinkpad_acpi.c b/drivers/platform/x86/thinkpad_acpi.c
  11. index 7b82868..c8bbf91 100644
  12. --- a/drivers/platform/x86/thinkpad_acpi.c
  13. +++ b/drivers/platform/x86/thinkpad_acpi.c
  14. @@ -5058,8 +5058,10 @@ static const char * const tpacpi_led_names[TPACPI_LED_NUMLEDS] = {
  15. "tpacpi::unknown_led2",
  16. "tpacpi::unknown_led3",
  17. "tpacpi::thinkvantage",
  18. + "tpacpi::unknown_led4",
  19. + "tpacpi::micmute",
  20. };
  21. -#define TPACPI_SAFE_LEDS 0x1081U
  22. +#define TPACPI_SAFE_LEDS 0x5081U
  23.  
  24. static inline bool tpacpi_is_led_restricted(const unsigned int led)
  25. {
  26. @@ -5281,7 +5283,7 @@ static const struct tpacpi_quirk led_useful_qtable[] __initconst = {
  27. { /* Lenovo */
  28. .vendor = PCI_VENDOR_ID_LENOVO,
  29. .bios = TPACPI_MATCH_ANY, .ec = TPACPI_MATCH_ANY,
  30. - .quirks = 0x1fffU,
  31. + .quirks = 0x5fffU,
  32. },
  33. { /* IBM ThinkPads with no EC version string */
  34. .vendor = PCI_VENDOR_ID_IBM,
  35. --
  36. 1.7.0.4
RAW Paste Data