At 10 Jul 2003 16:13:17 +1000,
Steve Smith wrote:
> 
> Hi,
> 
> I'm writing an Alsa driver for an application that needs both playback
> and capture, and needs to control the mixer settings.  I'm using the
> plughw: interface for both play and capture so I assume that I need to
> control the mixer volume for the PCM interface.  Is this correct, and
> how do I identify the PCM mixer element?  I could just compare the elem
> name, but this seems like a bit of a hack.

in most cases, yes, "PCM Playback Volume" and "Switch" are used for
controlling the PCM volumes.  but be aware that there are some cases
which don't have these controls but only "Master" controls.
so, this basically depends on the card.  xmms, for example, lets user
choose the mixer to control.

for identification: specify the proper element id (i.e. name, index,
device, iface).  you don't need to look-up and compare by yourself.


Takashi



-------------------------------------------------------
This SF.Net email sponsored by: Parasoft
Error proof Web apps, automate testing & more.
Download & eval WebKing and get a free book.
www.parasoft.com/bulletproofapps1
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to