thinkpad-acpi: fix ALSA callback return status
commitf74a773e5c54759a10e1711ee7995ba44383dd1d
authorHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sat, 3 Sep 2011 18:49:23 +0000 (3 15:49 -0300)
committerHenrique de Moraes Holschuh <hmh@hmh.eng.br>
Sun, 13 Nov 2011 17:09:41 +0000 (13 15:09 -0200)
tree38aaa147b499fd4de29e1b94e303c9af7aa6c7b4
parentd01b124f7911a2ddd8987a4a14f316310c1e935d
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