]> git.alsa-project.org Git - alsa-lib.git/commit
pcm: softvol: Allow up to 90 dB of gain
authorRicard Wanderlof <ricard.wanderlof@axis.com>
Wed, 18 Apr 2018 15:03:09 +0000 (17:03 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 20 Apr 2018 07:30:25 +0000 (09:30 +0200)
commit23a20cda111232b5d21dde12d10e19e4ecb71cea
tree8e44d98b07e489fa65ed0db0d4c17f844d7b19c5
parent4493f6a560a315970f5b068126120526a04ae6a2
pcm: softvol: Allow up to 90 dB of gain

The gain algorithm used in softvol can handle gain factors of up to
32767 which is slightly more than 90 dB, so allow a max_dB of 90 dB.
This doesn't affect existing asound.conf files, but does allow a
max_dB of up to 90 dB when needed.

Tested using Audacity that there is no undue distorsion or other
artefacts when 90 dB of gain is applied to a suitable signal (i.e.
a signal quiet enough not be clipped whan applying 90 dB of gain).

Signed-off-by: Ricard Wanderlof <ricardw@axis.com>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
src/pcm/pcm_softvol.c