mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-11 13:30:02 -05:00
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>
This commit is contained in:
parent
0ce3017b74
commit
b0f72311cf
3 changed files with 91 additions and 12 deletions
|
|
@ -63,10 +63,15 @@
|
|||
; # by the option name, resp. on/off if the element is a switch.
|
||||
; name = ... # Logical name to use in the path identifier
|
||||
; priority = ... # Priority if this is made into a device port
|
||||
; required = ignore | enumeration | any # In this element, this option must exist or the path will be invalid. ("any" is an alias for "enumeration".)
|
||||
; required-any = ignore | enumeration | any # In this element, either this or another option must exist (or an element)
|
||||
; required-absent = ignore | enumeration | any # In this element, this option must not exist or the path will be invalid
|
||||
;
|
||||
; [Element ...] # For each element that we shall control
|
||||
; required = ignore | switch | volume | enumeration | any # If set, require this element to be of this kind and available,
|
||||
; # otherwise don't consider this path valid for the card
|
||||
; required-any = ignore | switch | volume | enumeration | any # If set, at least one of the elements with required-any in this
|
||||
; # path must be present, otherwise this path is invalid for the card
|
||||
; required-absent = ignore | switch | volume # If set, require this element to not be of this kind and not
|
||||
; # available, otherwise don't consider this path valid for the card
|
||||
;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue