1. 16 Dec, 2009 5 commits
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: disable volume control · c7ac6291
      Henrique de Moraes Holschuh authored
      Disable volume control by default.  It can be enabled at module load
      time by a module parameter (volume_control=1).
      
      The audio control mixer that thinkpad-acpi interacts with is fully
      functional without any drivers, and operated by hotkeys.
      
      The idea behind the console audio control is that the human operator
      is the only one that can interact with it.  The ThinkVantage suite in
      Windows does not allow any software-based overrides, and only does OSD
      (on-screen-display) functions.
      
      The Linux driver will, with the addition of the ALSA interface, try to
      follow and enforce the ThinkVantage UI design:
      
      The user is supposed to use the keyboard hotkeys to interact with the
      console audio control.  The kernel and the desktop environment is
      supposed to cooperate to provide proper user feedback through
      on-screen-display functions.
      
      Distros are urged to not to enable volume control by default.
      Enabling this must be a local admin's decision.  This is the reason
      why there is no Kconfig option.
      
      Keep in mind that all ThinkPads have a normal, main mixer (AC97 or
      HDA) for regular software-based audio control.  We are not talking
      about that mixer here.
      
      Advanced users are, of course, free to enable volume control and do as
      they please.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Lorne Applebaum <lorne.applebaum@gmail.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      c7ac6291
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: support MUTE-only ThinkPads · a112ceee
      Henrique de Moraes Holschuh authored
      Lenovo removed the extra mixer since the T61 and thereabouts.
      Newer Lenovo models only have the mute gate function, and leave
      the volume control to the HDA mixer.
      
      Until a way to automatically query the firmware about its audio
      control capabilities is discovered (there might not be any), use a
      white/black list.
      
      We will likely need to ask T60 (old and new model) and Z60/Z61 users
      whether they have volume control to populate the black/white list.
      Meanwhile, provide a volume_capabilities parameter that can be used to
      override the defaults.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Lorne Applebaum <lorne.applebaum@gmail.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      a112ceee
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: volume subdriver rewrite · 329e4e18
      Henrique de Moraes Holschuh authored
      I don't trust the coupled EC writes and SMI calls the current volume
      control code does very much, although it is exactly what the IBM DSDTs
      seem to do (they never do more than a single step though).
      
      Change the driver to stop issuing SMIs, and just drive the EC directly
      to the desired level (DSDTs seem to confirm this will work even on
      very old models like the 570 and 600e/x).
      
      We checkpoint directly to NVRAM (this can be turned off) at
      suspend/shutdown/driver unload, which from what I can see in tbp,
      should also work on every ThinkPad.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Lorne Applebaum <lorne.applebaum@gmail.com>
      Cc: Matthew Garrett <mjg@redhat.com>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      329e4e18
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: log initial state of rfkill switches · 5451a923
      Henrique de Moraes Holschuh authored
      We already log the initial state of the hardware rfkill switch (WLSW),
      might as well log the state of the softswitches as well.
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Josip Rodin <joy+kernel@entuzijast.net>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      5451a923
    • Henrique de Moraes Holschuh's avatar
      thinkpad-acpi: sync input device EV_SW initial state · d89a727a
      Henrique de Moraes Holschuh authored
      Before we register the input device, sync the input layer EV_SW state
      through a call to input_report_switch(), to avoid issuing a gratuitous
      event for the initial state of these switches.
      
      This fixes some annoyances caused by the interaction with rfkill and
      EV_SW SW_RFKILL_ALL events.
      Reported-by: default avatarKevin Locke <kevin@kevinlocke.name>
      Signed-off-by: default avatarHenrique de Moraes Holschuh <hmh@hmh.eng.br>
      Cc: Alan Jenkins <alan-jenkins@tuffmail.co.uk>
      Cc: Johannes Berg <johannes@sipsolutions.net>
      Cc: Dmitry Torokhov <dtor@mail.ru>
      Signed-off-by: default avatarLen Brown <len.brown@intel.com>
      d89a727a
  2. 09 Dec, 2009 9 commits
  3. 03 Dec, 2009 1 commit
  4. 02 Dec, 2009 25 commits