diff options
author | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-03-11 13:40:51 +0200 |
---|---|---|
committer | Tanu Kaskinen <tanu.kaskinen@digia.com> | 2011-03-11 13:40:51 +0200 |
commit | 064780d9dea6a79c4c3adb07f530e2e6d5c68c0f (patch) | |
tree | 02ef3202831e50c1222627dbb7a20155109d21a0 /src/modules/alsa/mixer | |
parent | 68e6340394d66d9d41bf094440d950dd62adba62 (diff) |
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.
Diffstat (limited to 'src/modules/alsa/mixer')
-rw-r--r-- | src/modules/alsa/mixer/paths/analog-output.conf.common | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/modules/alsa/mixer/paths/analog-output.conf.common b/src/modules/alsa/mixer/paths/analog-output.conf.common index ffd1b413..c7c44350 100644 --- a/src/modules/alsa/mixer/paths/analog-output.conf.common +++ b/src/modules/alsa/mixer/paths/analog-output.conf.common @@ -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 |