]> git.alsa-project.org Git - alsa-utils.git/commit
amixer: fix rounding of relative changes
authorClemens Ladisch <clemens@ladisch.de>
Tue, 13 Nov 2012 20:54:20 +0000 (21:54 +0100)
committerClemens Ladisch <clemens@ladisch.de>
Tue, 13 Nov 2012 20:54:20 +0000 (21:54 +0100)
commitda1c24a24c699125aedc8d4f7c97d974b868dacf
treef60fc87fd8c641ee50ca8c6e1585f47bc3549950
parentc6614dbdab1cbe541e7d6cd29f3922510e0b6981
amixer: fix rounding of relative changes

When doing control changes by a relative amount, amixer used the wrong
rounding direction, which would make it possible to stay at the same raw
value if the step was not big enough to reach the next value.

Reported-by: Honza Javorek <jan.javorek@gmail.com>
Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
amixer/amixer.c