[fso based] Simplified mixer app
openmoko at mazikeen.demon.co.uk
Tue Oct 6 19:28:37 CEST 2009
On Tuesday 06 October 2009, Mikhail Umorin wrote:
> Thanks for the app, Al (see below)
> On Monday 05 October 2009 19:43:37 Al Johnson wrote:
> > On Friday 02 October 2009, Laszlo KREKACS wrote:
> > > On Fri, Oct 2, 2009 at 4:17 PM, Laszlo KREKACS
> > >
> > > <laszlo.krekacs.list at gmail.com> wrote:
> > > > But there is so many things what changed, that Im completely lost.
> > >
> > > Just wanted to notice you, that restoring the original
> > > gsmhandset.state file (and rebooting)
> > > does solve my problem. Im able to take call, and hear the other party.
> > > (and he able to hear me).
> > >
> > > Although your program was nice. It changed the mic way better, what I
> > > had. Other party
> > > said, its much louder and clearer.
> > >
> > > Hope you can sort out, why the broken .state file is broken. And where
> > > the bugs comes from ...
> > Updated version now available:
> > http://www.mazikeen.demon.co.uk/openmoko/fso-simplemixer.py
> In "simple" view if I slide volume all the way to the right, it goes to 101
> (not 100) is that correct?
That depends which slider it is ;-)
It is correct. I map the alsa channels to a single slider giving equal
increments covering the full range possible from those channels. For the
outputs this is usually gives steps 0 to 101 while for the mic it is usually 0
to 119. If you uncomment self.gta02mixer.PrintGains() and start it from the
cli it will show you the gain setting in dB for each step in the debug output.
Unfortunately pyalsaaudio only accepts integer percentages when setting
volume, so there are rounding errors when actually setting the volumes.
More information about the community