All of lore.kernel.org
 help / color / mirror / Atom feed
From: Ludovico Cavedon <ludovico.cavedon@gmail.com>
To: alsa-devel@alsa-project.org
Subject: Getting the correct capture mixer
Date: Sat, 25 Apr 2009 21:17:03 -0700	[thread overview]
Message-ID: <49F3E03F.80402@gmail.com> (raw)

Hi,
I am working on fixing some audio related bugs of a VoIP application
(qutecom) which, like most VoIP applications, allows the user to change
the playback and recording volume.

For playback volume I am opening the "Master" mixer element.

However I am not able to figure out how the application should get the
correct mixer for playback. Is there any rule?
For example, my sound card has two capture volumes, one "Int Mic" and
one "Ext Mic". I guess I should choose on the basis of what is the
user-selected mic. In fact there are also two mutually exclusive
switches "IntMic" and "ExtMic". But how should the application
understand that?

Here part of the output of amixer, my sound card is
"Intel [HDA Intel], device 0: CONEXANT Analog [CONEXANT Analog]"
----------------------------
Simple mixer control 'Ext Mic',0
  Capabilities: pvolume cvolume pswitch cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 20 Capture 0 - 23
  Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
  Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'ExtMic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [off]
Simple mixer control 'Int Mic',0
  Capabilities: pvolume cvolume pswitch cswitch
  Playback channels: Front Left - Front Right
  Capture channels: Front Left - Front Right
  Limits: Playback 0 - 20 Capture 0 - 23
  Front Left: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB] [off]
  Front Right: Playback 0 [0%] [-30.00dB] [off] Capture 0 [0%] [0.00dB]
[off]
Simple mixer control 'IntMic',0
  Capabilities: cswitch cswitch-joined cswitch-exclusive
  Capture exclusive group: 0
  Capture channels: Mono
  Mono: Capture [on]
------------------------

As an aside, it looks like that the capture volume has no effect, as
well all as the cswitches and pswitches of "Int Mic" and "Ext Mic".

Thanks,
Ludovico

             reply	other threads:[~2009-04-26  4:17 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-04-26  4:17 Ludovico Cavedon [this message]
  -- strict thread matches above, loose matches on Subject: below --
2009-04-29  7:08 Getting the correct capture mixer Ludovico Cavedon

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=49F3E03F.80402@gmail.com \
    --to=ludovico.cavedon@gmail.com \
    --cc=alsa-devel@alsa-project.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.