alsa-mixer: Accept negative max_dB when using decibel fixes
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Jan 2021 15:36:20 +0000 (17:36 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Mon, 18 Jan 2021 15:40:28 +0000 (17:40 +0200)
commitac7f2d96c7fc2d83f4a9fd74724ceaa9a634fe72
tree441208920dcdb54ac98c85acdaa3554bd8380e00
parent10ac01a2066b3d0a58ecc3e3db98dd43c284a209
alsa-mixer: Accept negative max_dB when using decibel fixes

Sometimes decibel fixes are used as a trick to set a maximum hardware
volume, and in these cases max_dB may be negative yet still valid.
Here's an example:
https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/292#note_671300

Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/447>
src/modules/alsa/alsa-mixer.c