thinkpad-acpi: fix ALSA callback return status
commit090d5d56b6cad7e6834ab1484b1b57c43e87856f
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Apr 2010 21:44:46 +0000 (3 18:44 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Tue, 27 Apr 2010 04:03:05 +0000 (27 01:03 -0300)
tree4e63a90b173cfa95bb786bab616cdd389cd560a9
parent5f8bf65455c9956865047c31263d56253f2f2e67
thinkpad-acpi: fix ALSA callback return status

Clemens Ladisch reports that thinkpad-acpi improperly implements the
ALSA API, and always returns 0 for success for the "put" callbacks
while the API requires it to return "1" when the control value has
been changed in the hardware/firmware.

Rework the volume subdriver to be able to properly implement the ALSA
API.  Based on a patch by Clemens Ladisch <clemens@ladisch.de>.

This fix is also needed on 2.6.33.

Reported-by: Clemens Ladisch <clemens@ladisch.de>
Signed-off-by: Henrique de Moraes Holschuh <hmh@hmh.eng.br>
Cc: stable@kernel.org
drivers/platform/x86/thinkpad_acpi.c