mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-14 06:59:53 -05:00
alsa-mixer: Implement support for setting element specific upper limits for volume.
This feature is mainly useful in embedded systems that have built-in speakers. In such situations the full audio path is known beforehand, so it's possible to know what is the maximum sensible volume, and any higher volume can be disabled. The volume limit is set in path configuration files in the [Element] section, using option "volume-limit". The value is the desired maximum volume step of the volume element.
This commit is contained in:
parent
68e6340394
commit
064780d9de
3 changed files with 69 additions and 1 deletions
|
|
@ -82,6 +82,7 @@
|
|||
; volume = ignore | merge | off | zero # What to do with this volume: ignore it, merge it into the device
|
||||
; # volume slider, always set it to the lowest value possible, or always
|
||||
; # set it to 0 dB (for whatever that means)
|
||||
; volume-limit = <volume step> # Limit the maximum volume by disabling the volume steps above <volume step>.
|
||||
; enumeration = ignore | select # What to do with this enumeration, ignore it or make it selectable
|
||||
; # via device ports. If set to 'select' you need to define an Option section
|
||||
; # for each of the items you want to expose
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue