acp: add support for soft volume

Add a set_soft_volume/mute event.
If we can't configure the hardware volume completely, notify
the remainder with the soft_volume/mute events.
This commit is contained in:
Wim Taymans 2020-07-06 17:22:42 +02:00
parent 4db6e0e2b3
commit d80d593271
4 changed files with 87 additions and 10 deletions

View file

@ -295,6 +295,7 @@ struct pa_alsa_device {
unsigned muted:1;
unsigned decibel_volume:1;
pa_cvolume real_volume;
pa_cvolume hardware_volume;
pa_volume_t base_volume;
unsigned n_volume_steps;