alsa-utils/alsamixer
Jaroslav Kysela 84d0a91f11 alsamixer: fix calculation in set_normalized_volume (overflow)
Lowering volume below 0 causes overflow spike to 100% volume (volume goes
below 0 and back to 100 repeatedly). 0 overflows past infinity when holding
down z,x,c.

> value = lrint_dir(6000.0 * log10(volume), dir) + max;
   (where volume = 0 , and dir = -1 . min = -9999999 , and max = -6)
> log10(0) is negative infinity = error

Fixes: https://github.com/alsa-project/alsa-utils/pull/266
Reported-by: genr8eofl <genBTC@gmx.com>
Signed-off-by: Jaroslav Kysela <perex@perex.cz>
2024-05-23 13:14:20 +02:00
..
alsamixer.1 alsamixer: add -B,--black-background option 2023-02-10 13:36:23 +01:00
alsamixer.rc.example alsamixer: add alsamixer.rc.example file 2022-05-31 14:16:30 +02:00
bindings.c alsamixer: Replaced hardcoded keys by binding arrays 2020-07-01 16:10:35 +02:00
bindings.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
card_select.c alsamixer: increase control device name buffer (sysdefault) 2021-04-15 11:27:42 +02:00
card_select.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
cli.c alsamixer: add -B,--black-background option 2023-02-10 13:36:23 +01:00
colors.c alsamixer: Fix regression in color setup 2022-01-20 08:58:48 +01:00
colors.h alsamixer: Fix regression in color setup 2022-01-20 08:58:48 +01:00
configparser.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
configparser.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
curskey.c alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
curskey.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
device_name.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
device_name.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
die.c alsamixer: Fix X-win related crash for PulseAudio plugin (bad linking) 2011-11-02 17:27:47 +01:00
die.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
go amixer/alsamixer - updated go scripts for debugging 2007-07-11 10:12:24 +02:00
mainloop.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
mainloop.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
Makefile.am alsamixer: add alsamixer.rc.example file 2022-05-31 14:16:30 +02:00
mem.c alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00
mem.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
menu_widget.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
menu_widget.h alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
mixer_clickable.c alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
mixer_clickable.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
mixer_controls.c alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00
mixer_controls.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
mixer_display.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
mixer_display.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
mixer_widget.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
mixer_widget.h alsamixer: added mouse support 2020-07-01 16:10:35 +02:00
proc_files.c alsamixer: small optimizations 2020-07-01 16:10:35 +02:00
proc_files.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
textbox.c alsamixer: fix the verbose compilation warnings for latest gcc 2023-08-30 12:36:45 +02:00
textbox.h alsamixer: show channel names for multichannel controls 2009-05-25 10:26:22 +02:00
utils.c alsamixer: remove wrong free(buf) call in read_file() 2020-07-01 16:16:24 +02:00
utils.h alsamixer: added configuration file parser 2020-07-01 16:10:35 +02:00
volume_mapping.c alsamixer: fix calculation in set_normalized_volume (overflow) 2024-05-23 13:14:20 +02:00
volume_mapping.h alsamixer: use cubic scale for volume bars 2010-12-06 14:07:48 +01:00
widget.c alsamixer: remove dead fcn widget_handle_key() in widget.c 2021-01-11 10:40:53 +01:00
widget.h alsamixer: fix gcc warnings 2018-10-14 17:05:22 +02:00