All of lore.kernel.org
 help / color / mirror / Atom feed
* Getting the correct capture mixer
@ 2009-04-26  4:17 Ludovico Cavedon
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovico Cavedon @ 2009-04-26  4:17 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Getting the correct capture mixer
@ 2009-04-29  7:08 Ludovico Cavedon
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovico Cavedon @ 2009-04-29  7:08 UTC (permalink / raw)
  To: alsa-devel

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

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2009-04-29  7:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-04-29  7:08 Getting the correct capture mixer Ludovico Cavedon
  -- strict thread matches above, loose matches on Subject: below --
2009-04-26  4:17 Ludovico Cavedon

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.