1. 16 May, 2010 4 commits
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: fix volume/mute hotkey poll handling · 5d756db9
      Henrique de Moraes Holschuh authored
      The hotkey polling code is supposed to generate hotkey messages as
      close to the way the IBM event-based volume hotkey firmware does as
      possible, i.e:
      
      * Pressing MUTE issues a mute hotkey event, even if already mute;
      
      * Pressing Volume up/down issues a volume up/down hotkey event,
        even if already at maximum or minumum volume;
      
      * The act of unmuting issues a volume up/down event, depending on
        which hotkey was used to unmute.
      
      Fix the code to do just that (mute handling was incorrect), and handle
      multiple hotkey presses between two polling cycles.
      
      The new code uses the volume_toggle bit in NVRAM only to detect
      repeated presses of the mute key and multiple presses of the volume
      keys trying to go past the end of the volume scale.  This will work
      around a bug in recent Lenovo firmware (e.g. T400), which causes the
      firmware to not update the volume_toggle bit in certain situations.
      Reported-by: default avatarYang Zhe <yangzhe1990@gmail.com>
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      5d756db9
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: X100e quick fixes · a318930d
      Henrique de Moraes Holschuh authored
      The X100e needs some quick fixes to work semi-right with this driver.
      There are much better ways to do this, but we can start with a quick
      update and do it properly later.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      a318930d
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: constrain IBM-era support to IBM boxes · e28393c0
      Henrique de Moraes Holschuh authored
      Lenovo is playing around with its ACPI BIOS, and will end up reusing
      method names.  Their memory is not nearly as long as thinkpad-acpi's...
      
      Secure most of the old IBM codepaths against running in a non-IBM box.
      This would happen on the Lenovo X100e in video_init(), for example.  We
      would misdetect it as an ancient model 570 firmware.
      
      Also, refuse to load the driver if we cannot identify the vendor.  No
      ACPI ThinkPad in existence lacks this information, AFAIK.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      e28393c0
    • Henrique de Moraes Holschuh's avatar
      Merge mainline (v2.6.34-rc7) · b65b3489
      Henrique de Moraes Holschuh authored
      b65b3489
  2. 10 May, 2010 3 commits
  3. 07 May, 2010 13 commits
  4. 06 May, 2010 20 commits