acp: reset soft volume

When we have accurate enough hardware volume, set the software volume to
1.0. Also fixes the issue of going to 0 volume and then staying silent
until we raise the volume above 1.0.
This commit is contained in:
Wim Taymans 2020-09-28 12:40:16 +02:00
parent 479bf3c803
commit 08438903e5
3 changed files with 17 additions and 8 deletions

View file

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