thinkpad-acpi: fix ALSA callback return status
commitd2af5500e97b6aa02c3684e5de3a83681b45ef8e
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 27 Feb 2010 21:58:39 +0000 (27 18:58 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 27 Feb 2010 21:58:39 +0000 (27 18:58 -0300)
treedd1feec79e612c2bbe646a98d1b3019e08593672
parent380676923a29332ff3e3ee3db5f5632755d644f5
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