alsa: Document that mixer elements can be identified by a combination of name and...
authorTanu Kaskinen <tanuk@iki.fi>
Fri, 14 Feb 2020 09:01:04 +0000 (11:01 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Fri, 14 Feb 2020 09:01:04 +0000 (11:01 +0200)
src/modules/alsa/mixer/paths/analog-output.conf.common
src/modules/alsa/mixer/profile-sets/default.conf
src/modules/alsa/module-alsa-sink.c
src/modules/alsa/module-alsa-source.c

index e52830d..7bf3463 100644 (file)
@@ -85,7 +85,8 @@
 ; 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
+; [Element ...]                          # For each element that we shall control. The "..." here is the element name,
+;                                        # or name and index separated by a comma.
 ; 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 or jacks with required-any in this
index 34c51bc..c73bf5c 100644 (file)
@@ -49,7 +49,8 @@
 ;                                           # If multiple are found to be working they will be available as device ports
 ; paths-output = ...
 ; element-input = ...                       # Instead of configuring a full mixer path simply configure a single
-;                                           # mixer element for volume/mute handling
+;                                           # mixer element for volume/mute handling. The value can be an element
+;                                           # name, or name and index separated by a comma.
 ; element-output = ...
 ; priority = ...
 ; direction = any | input | output          # Only useful for?
@@ -72,7 +73,8 @@
 ; [DecibelFix element]                      # Decibel fixes can be used to work around missing or incorrect dB
 ;                                           # information from alsa. A decibel fix is a table that maps volume steps
 ;                                           # to decibel values for one volume element. The "element" part in the
-;                                           # section title is the name of the volume element.
+;                                           # section title is the name of the volume element (or name and index
+;                                           # separated by a comma).
 ;                                           #
 ;                                           # NOTE: This feature is meant just as a help for figuring out the correct
 ;                                           # decibel values. PulseAudio is not the correct place to maintain the
index 4d4beb3..a90c5e4 100644 (file)
@@ -52,7 +52,7 @@ PA_MODULE_USAGE(
         "tsched_buffer_size=<buffer size when using timer based scheduling> "
         "tsched_buffer_watermark=<lower fill watermark> "
         "ignore_dB=<ignore dB information from the device?> "
-        "control=<name of mixer control> "
+        "control=<name of mixer control, or name and index separated by a comma> "
         "rewind_safeguard=<number of bytes that cannot be rewound> "
         "deferred_volume=<Synchronize software and hardware volume changes to avoid momentary jumps?> "
         "deferred_volume_safety_margin=<usec adjustment depending on volume direction> "
index 747ba93..d152283 100644 (file)
@@ -61,7 +61,7 @@ PA_MODULE_USAGE(
         "tsched_buffer_size=<buffer size when using timer based scheduling> "
         "tsched_buffer_watermark=<upper fill watermark> "
         "ignore_dB=<ignore dB information from the device?> "
-        "control=<name of mixer control>"
+        "control=<name of mixer control, or name and index separated by a comma>"
         "deferred_volume=<Synchronize software and hardware volume changes to avoid momentary jumps?> "
         "deferred_volume_safety_margin=<usec adjustment depending on volume direction> "
         "deferred_volume_extra_delay=<usec adjustment to HW volume changes> "