[alsa-devel] Softvol controls

John Utz john.utz at dmx.com
Fri Nov 30 01:34:48 CET 2007


Oh heck.....

On Fri, 30 Nov 2007 01:08:11 +0100
"Lennart Poettering" <mznyfn at 0pointer.de> wrote:

> On Thu, 29.11.07 15:46, John Utz (john.utz at dmx.com) wrote:
> 
> John,
> 
> > > > Check snd_ctl_elem_info_is_user().  All softvol controls are
> > > > implemented as user elements.
> > > 
> > > Hmm, how am I supposed to get the snd_ctl_elem_info_t from a
> > > snd_mixer_elem_t or snd_mixer_selem_id_t?
> > > 
> > > I figure there is no useful documentation or even example how
> > > this is supposed to work? Hmm, is there any real documentation
> > > available which describes the relation of ctl, hctl, mixer and
> > > smixer at all? For the uninitated the whols structure looks
> > > overly complex and redundant.
> > 
> > Here's my take on it....HTH
> > 
> > dont hesitate to ask
> 
> Hu? Neither "snd_ctl_elem_info_t" nor "snd_ctl_elem_info_is_user()"
> is even mentioned in your source code excerpt?

I failed to pay close enuf attention to your post. sorry 'bout that.

> I know how to change volumes and stuff via the ALSA mixer API. What I
> am looking for is a way to detect whether a mixer element is
> implemented in softwaer only and thus doesn't influence your ouput
> when you open a PCM device with "hw:0", "front:0", "surround51:0" and
> suchlike.

That actually is a good question that i thought i might have to answer,
but i managed to avoid it.

Sorry for the confusion.....

johnu

> Lennart
> 



More information about the Alsa-devel mailing list