Alsa-Devel Archive on lore.kernel.org
 help / color / mirror / Atom feed
* Standard mixer control names
@ 2009-02-21 23:36 Lennart Poettering
  2009-02-22 12:00 ` Liam Girdwood
  2009-02-23  9:11 ` Takashi Iwai
  0 siblings, 2 replies; 8+ messages in thread
From: Lennart Poettering @ 2009-02-21 23:36 UTC (permalink / raw)
  To: ALSA Development Mailing List

Heya!

I'd like to add functionality to PulseAudio to allow a simplified
selection of capture input (i.e. "Mic", "Line-In", ...) and playback
outputs ("Headphones", "Line-Out", ...) for ALSA cards. By
"simplified" I mean that only one input and output shall be active at
a time. Also, some more nonsense items shall be filtered out
(i.e. recording from "Phone"). Hence, basically I want to compile a
list of available and whitelisted inputs and outputs and allow the
user to select exactly one from each.

ALSA is making that very hard to implement something like this because
every driver seems to wrap input/output selection differently.

On one card I have only has a couple of cswitches
(snd-es1371). The same one has an enum "Mic Select". Another card has
an enum "Input Source", but no cswitches (a HDA chip). The
"ControlNames.txt" file in the kernel seems to suggest that there is an
element "Capture Source".

For playback it seems that some cards have a a headphone switch, and
others a headphone slider (which i guess makes sense).

Now, the question, how should I implement this?

For playback the handling is easy as long as there is only one element
to deal with, but what about capture? One option would be to simply
go by cswitch and nothing else. Or go by "Input Source" and nothing
else. Or combine some form. Now I'd of course prefer if the drivers
get fixed to use a single element naming scheme only. Is there any
chance to get that? And which one would that be?

Lennart

-- 
Lennart Poettering                        Red Hat, Inc.
lennart [at] poettering [dot] net         ICQ# 11060553
http://0pointer.net/lennart/           GnuPG 0x1A015CC4

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

end of thread, other threads:[~2009-02-24 12:05 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2009-02-21 23:36 Standard mixer control names Lennart Poettering
2009-02-22 12:00 ` Liam Girdwood
2009-02-22 12:56   ` Mark Brown
2009-02-22 15:19     ` Liam Girdwood
2009-02-23  9:11 ` Takashi Iwai
2009-02-23 16:47   ` Lennart Poettering
2009-02-24 11:19     ` Takashi Iwai
2009-02-24 12:05       ` Pavel Hofman

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox