[nas] [PATCH] changed method of setting the input gain

Jon Trulson jon at radscan.com
Sun Jul 23 22:29:07 MDT 2006


On Mon, 24 Jul 2006, Erik Auerswald wrote:

> Hi,
>
> the attached patch changes the way the input gain is controlled. After
> reading some docs and googling a bit it seems that the method currently
> used in the voxware server was correct for OSS 3.0. For some cards
> (Soundblaster) a seperate RECLEV setting existed which could (should?)
> be used. The RECLEV method has been superseded by using IGain since. OSS
> 4.0 uses different ioctrls, but it shall be compatible when used with
> older drivers.
>
> With this patch the voxware server tries to use IGain, if that fails
> RECLEV and if that fails LINE and MIC. This should work for old and new
> hardware, I hope. If this logic fails on some hw/driver combination a
> config option to manually specify which method to use can be added.
>

         Looks good - applied.

> The "mixerinit" option (translated to leave_mixer in auvoxware.c) works
> the same before and after the patch. IMHO this option needs some
> overhaul -- it should leave the mixer settings and not set the default
> values. An additional option "nomixer" could be added to tell nasd not
> to open a mixer device.
>

         Hmm... It should setup default gains and recsrc if mixerinit
         is true.  It should probaby setup these defaults every time it
         opens the device, shouldn't it?  It does not appear to qork
         quite that way currently... It seems to only prevent RECSRC
         from being setup.


> Erik
>

-- 
Jon Trulson
mailto:jon at radscan.com http://radscan.com/~jon
#include <std/disclaimer.h>
"No Kill I" -Horta




More information about the Nas mailing list