thinkpad-acpi: volume subdriver rewrite
commit2cad7e529ecb87c9b7992b3509e7e5bf5464328c
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 13 Dec 2009 19:10:51 +0000 (13 17:10 -0200)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 13 Dec 2009 19:10:51 +0000 (13 17:10 -0200)
tree87240793f8378b308ad9a9f53c73177840ec703d
parent741b8d476b4e32c124008326c48c0f40c0691fa3
thinkpad-acpi: volume subdriver rewrite

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: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: Lorne Applebaum <lorne.applebaum@gmail.com>
Cc: Matthew Garrett <mjg@redhat.com>
Documentation/laptops/thinkpad-acpi.txt
drivers/platform/x86/thinkpad_acpi.c