]> code.delx.au - pulseaudio/commit
alsa-mixer: Implement support for setting element specific upper limits for volume.
authorTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 11 Mar 2011 11:40:51 +0000 (13:40 +0200)
committerTanu Kaskinen <tanu.kaskinen@digia.com>
Fri, 11 Mar 2011 11:40:51 +0000 (13:40 +0200)
commit064780d9dea6a79c4c3adb07f530e2e6d5c68c0f
tree02ef3202831e50c1222627dbb7a20155109d21a0
parent68e6340394d66d9d41bf094440d950dd62adba62
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.
src/modules/alsa/alsa-mixer.c
src/modules/alsa/alsa-mixer.h
src/modules/alsa/mixer/paths/analog-output.conf.common