[nas] [PATCH] consistent gain setting in voxware server

Erik Auerswald auerswal at unix-ag.uni-kl.de
Fri Jul 21 11:52:12 MDT 2006


Hi,

On Fri, Jul 21, 2006 at 12:43:27PM -0400, Paul Fox wrote:
> (another place i'd like configurability:  the computer that drives my
> stereo has sound hardware that distorts if the master volume is
> set to above 80 or so.

I had this same problem with VIA on-board sound and have it with my
current nforce3 on-board sound.

> i'd love to be able to tell either the alsa
> driver or the nas server that volume control requests should all be
> scaled by 80%, so that '100' at the NAS client translates into 80 at
> the sound hardware.  and now that i've described the problem in
> such simple terms, maybe i'll get around to implementing it.  :-)

This should not be too hard -- a config option to specify a maximum
setting in percentages and scaling the value in setPhysicalOutputGain()
should do the trick.

On the input side this is a bit more complicated, there should be
scaling factors for both Line and Mic as at least with my hardware the
usable IGain range is totally different for the inputs (0% <= Line <=33%
and full range for Mic).

Erik



More information about the Nas mailing list