1. 06 5月, 2015 1 次提交
  2. 15 3月, 2015 2 次提交
  3. 04 3月, 2015 5 次提交
  4. 12 2月, 2015 1 次提交
  5. 11 2月, 2015 1 次提交
  6. 07 2月, 2015 1 次提交
  7. 04 12月, 2014 1 次提交
    • A
      thinkpad-acpi: Try to use full software mute control · 9a417ec0
      Andy Lutomirski 提交于
      ThinkPads have hardware volume controls and three buttons to control
      them.  (These are separate from the standard mixer.)  By default,
      the buttons are:
      
       - Mute: Mutes the hardware volume control and, on some models,
         generates KEY_MUTE.
      
       - Up: Unmutes, generates KEY_VOLUMEUP, and increases volume if
         applicable.  (Newer thinkpads only have hardware mute/unmute.)
      
       - Down: Unmutes, generates KEY_VOLUMEDOWN, and decreases volume
         if applicable.
      
      This behavior is unfortunate, since modern userspace will also
      handle the hotkeys and change the other mixer.  If the software
      mixer is muted and the hardware mixer is unmuted and you push mute,
      hilarity ensues as they both switch state.
      
      Rather than adding a lot of complex ALSA integration to fix this,
      just disable the special ThinkPad volume controls when possible.
      This turns the mute and volume buttons into regular buttons, and
      standard software controls will work as expected.
      
      ALSA already knows about the mute light on models with a mute light,
      so everything should just work.
      
      This should also allow us to remove _OSI(Linux) for all ThinkPads.
      
      For future reference: It turns out that we can ask ACPI for one of
      three behaviors directly on very new models.  They are "latch" (the
      default), "none" (no automatic control), and "toggle" (mute unmutes
      when muted).  All of the modes besides "none" seem to be a bit
      buggy, though, and there doesn't seem to be a consistent way to get
      any notification when the HW mute state is changed.
      Signed-off-by: NAndy Lutomirski <luto@mit.edu>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NDarren Hart <dvhart@linux.intel.com>
      9a417ec0
  8. 20 10月, 2014 1 次提交
  9. 14 10月, 2014 1 次提交
  10. 18 9月, 2014 1 次提交
  11. 16 8月, 2014 3 次提交
  12. 11 6月, 2014 1 次提交
  13. 10 4月, 2014 1 次提交
  14. 07 4月, 2014 4 次提交
  15. 14 2月, 2014 1 次提交
  16. 07 12月, 2013 1 次提交
    • L
      ACPI: Clean up inclusions of ACPI header files · 8b48463f
      Lv Zheng 提交于
      Replace direct inclusions of <acpi/acpi.h>, <acpi/acpi_bus.h> and
      <acpi/acpi_drivers.h>, which are incorrect, with <linux/acpi.h>
      inclusions and remove some inclusions of those files that aren't
      necessary.
      
      First of all, <acpi/acpi.h>, <acpi/acpi_bus.h> and <acpi/acpi_drivers.h>
      should not be included directly from any files that are built for
      CONFIG_ACPI unset, because that generally leads to build warnings about
      undefined symbols in !CONFIG_ACPI builds.  For CONFIG_ACPI set,
      <linux/acpi.h> includes those files and for CONFIG_ACPI unset it
      provides stub ACPI symbols to be used in that case.
      
      Second, there are ordering dependencies between those files that always
      have to be met.  Namely, it is required that <acpi/acpi_bus.h> be included
      prior to <acpi/acpi_drivers.h> so that the acpi_pci_root declarations the
      latter depends on are always there.  And <acpi/acpi.h> which provides
      basic ACPICA type declarations should always be included prior to any other
      ACPI headers in CONFIG_ACPI builds.  That also is taken care of including
      <linux/acpi.h> as appropriate.
      Signed-off-by: NLv Zheng <lv.zheng@intel.com>
      Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
      Cc: Matthew Garrett <mjg59@srcf.ucam.org>
      Cc: Tony Luck <tony.luck@intel.com>
      Cc: "H. Peter Anvin" <hpa@zytor.com>
      Acked-by: Bjorn Helgaas <bhelgaas@google.com> (drivers/pci stuff)
      Acked-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> (Xen stuff)
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      8b48463f
  17. 21 11月, 2013 2 次提交
  18. 17 10月, 2013 1 次提交
  19. 16 10月, 2013 1 次提交
    • A
      thinkpad-acpi: fix handle locate for video and query of _BCL · 46445b6b
      Aaron Lu 提交于
      The tpacpi_acpi_handle_locate function makes use of acpi_get_devices to
      locate handle for ACPI video by HID, the problem is, ACPI video node
      doesn't really have HID defined(i.e. no _HID control method is defined
      for video device), so.. that function would fail. This can be solved by
      enhancing the callback function for acpi_get_devices, where we can use
      acpi_device_hid function to check if the ACPI node corresponds to a
      video controller.
      
      In addition to that, the _BCL control method only exists under a video
      output device node, not a video controller device node. So to evaluate
      _BCL, we need the handle of a video output device node, which is child
      of the located video controller node from tpacpi_acpi_handle_locate.
      
      The two fix are necessary for some Thinkpad models to emit notification
      on backlight hotkey press as a result of evaluation of _BCL.
      Signed-off-by: NAaron Lu <aaron.lu@intel.com>
      Tested-by: NIgor Gnatenko <i.gnatenko.brain@gmail.com>
      Acked-by: NHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Signed-off-by: NRafael J. Wysocki <rafael.j.wysocki@intel.com>
      46445b6b
  20. 05 9月, 2013 2 次提交
  21. 15 7月, 2013 2 次提交
  22. 18 4月, 2013 1 次提交
  23. 10 4月, 2013 1 次提交
    • A
      procfs: new helper - PDE_DATA(inode) · d9dda78b
      Al Viro 提交于
      The only part of proc_dir_entry the code outside of fs/proc
      really cares about is PDE(inode)->data.  Provide a helper
      for that; static inline for now, eventually will be moved
      to fs/proc, along with the knowledge of struct proc_dir_entry
      layout.
      Signed-off-by: NAl Viro <viro@zeniv.linux.org.uk>
      d9dda78b
  24. 27 2月, 2013 1 次提交
    • R
      drivers/platform/x86/thinkpad_acpi.c: Handle HKEY event 0x6040 · 6f62bc3e
      Richard Hartmann 提交于
      Handle HKEY event generated on AC power change. The current message
      asks users to submit data related to this event which leads to
      a lot of confusion and noise on the mailing list.
      
      The following is a list affected models and 'Message-Id'
      from ibm-acpi-devel@lists.sourceforge.net of people who saw this
      event when either plugging or unplugging the AC adapter or
      docking or undocking their laptop.
      
      X120e - CAAAujb5v9dHdbdxDVvhNJoG4UrZC1TgKqeB_zGpAy7q8kZHMEQ@mail.gmail.com
      X121e - 20120817143459.GB3462@x1.osrc.amd.com
      X220  - Confirmed by Richard Hartmann
      X220i - 4F406274.7070807@gmail.com
      X220t - 4F489F5B.9040705@cs.tu-berlin.de
      X230  - CAKx4u7kqvVH0-gstomsiVYdGC0i6=bGxzaQ8sq9gbg76TGme3w@mail.gmail.com
      T420  - 9c848ee30b006737d0534d906bab0cf6@niklaas-baudet.net
      T420s - 20120608080824.GS25324@hexapodia.org
      W520  - 20121008181050.GF2549@ericlaptop.home.christensenplace.us
      Signed-off-by: NRichard Hartmann <richih.mailinglist@gmail.com>
      Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
      6f62bc3e
  25. 25 2月, 2013 1 次提交
    • M
      thinkpad-acpi: enable loading module with new B-series Lenovo BIOS · 16a3d9f5
      Manoj Iyer 提交于
      The new B series BIOS has version string 43CN46WW. The driver
      requires that 2nd and 3rd characters be 'E' and 'T' respectively,
      where as the newer BIOS has 'C' and 'N' respectively. Failing to
      load the module causes some of the hotkeys to not work.
      
      Before the patch
      ================
      sudo modprobe thinkpad_acpi
      FATAL: Error inserting thinkpad_acpi (/lib/modules/3.5.0-15-generic/kernel/drivers/platform/x86/thinkpad_acpi.ko): No such device
      
      After the patch
      ===============
      [44937.265438] thinkpad_acpi: ThinkPad ACPI Extras v0.24
      [44937.265445] thinkpad_acpi: http://ibm-acpi.sf.net/
      [44937.265449] thinkpad_acpi: ThinkPad BIOS 43CN46WW, EC unknown
      [44937.265453] thinkpad_acpi: Lenovo Lenovo B470e, model HuronRiver Platform
      [44937.266479] thinkpad_acpi: detected a 8-level brightness capable ThinkPad
      [44937.266557] thinkpad_acpi: Standard ACPI backlight interface available, not loading native one
      [44937.267846] thinkpad_acpi: Console audio control enabled, mode: monitor (read only)
      [44937.268131] input: ThinkPad Extra Buttons as /devices/platform/thinkpad_acpi/input/input17
      Signed-off-by: NManoj Iyer <manoj.iyer@canonical.com>
      Tested-by: NJames Ferguson <james.ferguson@canonical.com>
      Signed-off-by: NMatthew Garrett <matthew.garrett@nebula.com>
      16a3d9f5
  26. 23 2月, 2013 1 次提交
  27. 04 1月, 2013 1 次提交
    • G
      Drivers: platform: x86: remove __dev* attributes. · b859f159
      Greg Kroah-Hartman 提交于
      CONFIG_HOTPLUG is going away as an option.  As a result, the __dev*
      markings need to be removed.
      
      This change removes the use of __devinit, __devexit_p, __devinitdata,
      __devinitconst, and __devexit from these drivers.
      
      Based on patches originally written by Bill Pemberton, but redone by me
      in order to handle some of the coding style issues better, by hand.
      
      Cc: Bill Pemberton <wfp5p@virginia.edu>
      Cc: Joey Lee <jlee@novell.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Cc: Peter Feuerer <peter@piie.net>
      Cc: Corentin Chary <corentin.chary@gmail.com>
      Cc: Cezary Jackiewicz <cezary.jackiewicz@gmail.com>
      Cc: Robert Gerlach <khnz@gmx.de>
      Cc: Ike Panhc <ike.pan@canonical.com>
      Cc: Henrique de Moraes Holschuh <ibm-acpi@hmh.eng.br>
      Signed-off-by: NGreg Kroah-Hartman <gregkh@linuxfoundation.org>
      b859f159