alsa-utils/alsactl
Clemens Ladisch 4f29877d54 alsactl: correctly restore dB values of controls with changed range
When the range of a control has changed between driver versions, it is a
good idea to restore the same dB value of the control.  However,
computing the dB value by interpolating betweem the min/max dB values
duplicates alsa-lib's TLV functions and does not even work for controls
with a linear dB range.

A simple conversion to dB and back can be done if we add the dB value(s)
to the saved state.

Signed-off-by: Clemens Ladisch <clemens@ladisch.de>
2010-05-26 10:27:25 +02:00
..
init alsactl: init - default - initialize also "Digital Input Source" 2009-11-12 08:54:25 +01:00
alsactl.1 Add -I option to alsactl 2008-11-13 09:28:43 +01:00
alsactl.c alsactl: Fix return code 2010-02-14 19:07:25 +01:00
alsactl.h alsactl: use snd_config_imake* functions 2010-05-26 10:07:47 +02:00
alsactl_init.xml alsactl init: Add CTL{do_search} and CTL{do_count} parsers 2009-10-08 13:47:27 +02:00
init_parse.c alsactl: fix error path code in init_parse.c 2009-12-14 17:26:57 +01:00
init_sysdeps.c alsa-utils check if __USE_BSD is defined before compiling "BSD functions" 2008-12-08 11:55:27 +01:00
init_sysfs.c Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
init_utils_run.c Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
init_utils_string.c Fix misc compile warnings in alsactl 2009-02-18 15:34:57 +01:00
list.h Initial 'alsactl init' implementation 2008-07-31 15:45:08 +02:00
Makefile.am Add --disable-xmlto configure option 2008-10-30 11:50:17 +01:00
state.c alsactl: correctly restore dB values of controls with changed range 2010-05-26 10:27:25 +02:00
utils.c alsactl: use snd_config_imake* functions 2010-05-26 10:07:47 +02:00