]> code.delx.au - pulseaudio/commit
alsa-mixer: add required-any and required-* for enum options
authorDavid Henningsson <david.henningsson@canonical.com>
Mon, 20 Dec 2010 11:29:27 +0000 (12:29 +0100)
committerColin Guthrie <cguthrie@mandriva.org>
Fri, 25 Feb 2011 15:48:11 +0000 (15:48 +0000)
commitb0f72311cf49e25ea05279e3a978bb4db54dd332
tree47c3bf5ad3d407da249a59776ead0784ad099cc9
parent0ce3017b7407ab1c4094f7ce271bb68319a7eba7
alsa-mixer: add required-any and required-* for enum options

Now you can add required-any to elements in a path and the path
will be valid as long as at least one of the elements are present.
Also you can have required, required-any and required-absent in
element options, causing a path to be unsupported if an option is
(not) present (simplified example: to skip line in path if
"Capture source" doesn't have a "Line In" option).

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h
src/modules/alsa/mixer/paths/analog-output.conf.common