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

Jon Trulson jon at radscan.com
Fri Jul 21 20:58:39 MDT 2006


On Fri, 21 Jul 2006, Erik Auerswald wrote:

> Hi,
>
> On Thu, Jul 20, 2006 at 06:06:41PM -0600, Jon Trulson wrote:
>> On Thu, 20 Jul 2006, Erik Auerswald wrote:
>>> On Wed, Jul 19, 2006 at 11:08:11PM -0600, Jon Trulson wrote:
>>>> On Thu, 20 Jul 2006, Erik Auerswald wrote:
>>>>> - On my system the wrong mixer parts are affected, i.e. the value of
[...]
> And this does not work the way it is intended with my hw/drivers.
> Presumably it did work back when it was implemented on that hw/drivers
> combination.
>

         Unfortunately, it was probably developed on some very
         primative hw :(

>>> On my hardware a special record selection has to be used and the IGain
>>> value modified. This is not done by the NAS voxware server.
>>
>>         ioctl(mixerfd, MIXER_WRITE(SOUND_MIXER_MIC), &inputAttenuation);
>>
>>         is not the right way on your hardware so set the MIC's input
>>         gain?
>
> Indeed, that does not change the input gain (IGain) on my hardware.
>
>>         What does this do on your hw?  (one way to see is to
>>         run something like alsomixer[gui] and see what volumes/gains
>>         are adjusted) when you do various things.
>
> I used aumix (http://jpj.net/~trevor/aumix.html) to do this...
>

         I guess I don't have the right gnome gmagic to compile this.

> The above ioctl changes the Mic level on my hw. This level is used when
> amplifying the microphone input to the speakers. This is not used when
> recording from the mic input. MIXER_WRITE(SOUND_MIXER_LINE) works the
> same way with the Line value.
>

         Googling around, I wonder if SOUND_MIXER_RECLEV and/or
         SOUND_MIXER_IGAIN is what is needed here, specifically,
         something like:

         http://techweb.rfa.org/pipermail/portaudio/2005-March/004493.html

         Interesting...  I wonder what devmask (in InitMixer()) is
         returning for your device... What is your device anyway?


-- 
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