alsa: mixer - use safe dB range values when the override mask is unset
authorJaroslav Kysela <perex@perex.cz>
Sat, 24 Oct 2020 16:20:59 +0000 (18:20 +0200)
committerPulseAudio Marge Bot <pulseaudio-maintainers@lists.freedesktop.org>
Mon, 21 Dec 2020 17:41:37 +0000 (17:41 +0000)
commite67af95830a5f1b9930ecfdd4e32e0027b7a902f
tree7d592df9a050afbaabdda0330f92fc4fadb47545
parentee1391860fa597c26eb6d2ee27b09c0eac659eb7
alsa: mixer - use safe dB range values when the override mask is unset

Use safe values for the min_dB and max_dB fields when the position mask
is unset to avoid breakage for the upper levels.

If the range is incorrect, the volume range shown in pavucontrol shows
strange values.

(Thanks to Wim Taymans for the idea.)

Signed-off-by: Jaroslav Kysela <perex@perex.cz>
Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/389>
src/modules/alsa/alsa-mixer.c