[nas] [PATCH] consistent gain setting in voxware server
auerswal at unix-ag.uni-kl.de
Sat Jul 22 01:35:38 MDT 2006
On Fri, Jul 21, 2006 at 08:58:39PM -0600, Jon Trulson wrote:
> On Fri, 21 Jul 2006, Erik Auerswald wrote:
> >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
> >> ioctl(mixerfd, MIXER_WRITE(SOUND_MIXER_MIC), &inputAttenuation);
> >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:
On my hw SOUND_MIXER_IGAIN and SOUND_MIXER_RECSRC are needed. I'll take
a look at SOUND_MIXER_RECLEV later.
> Interesting... I wonder what devmask (in InitMixer()) is
> returning for your device... What is your device anyway?
I have an nvidia nforce 3 chipset with integrated sound. It has some
additional inputs to just line and mic, but the important part seems to
be that only one recording source may be active at any time.
Interestingly the master channel can be set as recording source, but I
did not try if this actually works.
More information about the Nas