The Advanced Linux Sound Architecture (ALSA) - library
Find a file
Steve Longerbeam 63e4c591f9 Add support for gain in softvol plugin
This patch allows for gain in the softvol plugin, in addition to attenuation.
The plugin now has a "max_dB" parameter (up to 50 dB) as well as the
original "min_dB" parameter (down to -51 dB). max_dB defaults to 0 dB, so
unless max_dB is specified in a device conf, the behavior of the plugin will
be the same as before (attenuation only).

HDA-Intel.conf is also modified to use softvol for its default capture.
So now, capture is filtered through softvol (range -30 to +30 dB) before
being passed on to dsnoop as before.

The softvol plugin allows a range of -51 to +50 dB, so max_dB could be
increased to 50. But eventually samples are going to get clipped. At 40
dB I was beginning to get clipping when recording a sample sound at a
"reasonably soft" volume using a digital mic on the stac9205 HDA codec.

The motivation for this work is that some HDA codecs have no hardware gain
control for some paths. For instance, the stac9205 has support for digital
mics, but there is no gain control widget for this signal before it is placed
on the Azalia link (only a mute). Therefore gain can only be accomplished
via software.

Signed-off-by: Steve Longerbeam <stevel@embeddedalley.com>
2007-05-18 15:04:12 +02:00
alsalisp Don't install alsalisp 2006-04-12 12:40:06 +02:00
aserver Terminate long_options array 2004-09-28 17:22:33 +00:00
doc add snd_device_name_hint() function and initial implementation 2006-10-11 13:18:57 +02:00
include String array for default rate plugin list 2007-03-22 00:58:42 +01:00
modules Add config and plugin directory options to configure 2007-05-03 20:55:54 +02:00
src Add support for gain in softvol plugin 2007-05-18 15:04:12 +02:00
test change iface argument for namehint function to const char * 2006-10-27 13:31:32 +02:00
utils Allow build without libdl and libpthread 2007-03-22 00:48:18 +01:00
.hgignore Add src/control/ctl_symbols_list.c to .hgignore 2007-03-28 13:49:23 +02:00
.hgtags Added tag v1.0.14rc4 for changeset b557eb8496bb 2007-05-02 08:45:45 +02:00
acinclude.m4 fixed for the recent autoconf. 2004-01-26 15:52:17 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.in Add config and plugin directory options to configure 2007-05-03 20:55:54 +02:00
COPYING Updated GNU GPL license (address). 2001-12-30 09:22:54 +00:00
cvscompile make sure commands in cvs/hg compile scripts worked 2006-09-26 15:37:07 +02:00
hgcompile make sure commands in cvs/hg compile scripts worked 2006-09-26 15:37:07 +02:00
INSTALL Add hgcompile script and fix INSTALL document 2006-05-12 15:33:44 +02:00
Makefile.am Allow build without libdl and libpthread 2007-03-22 00:48:18 +01:00
MEMORY-LEAK Initial version 2003-02-04 14:56:07 +00:00
NOTES Add description about non-blocking behavior 2006-02-17 20:51:12 +00:00
TODO Added snd_config_load_override(). 2002-01-09 21:28:15 +00:00