sink/source: Fix restore of volume on devices without hw volume
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 26 Aug 2014 11:44:02 +0000 (13:44 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Fri, 29 Aug 2014 13:34:18 +0000 (15:34 +0200)
commit5dba418160223e90746235f495bab5b79d74e97b
tree590c2353790605b45053d2822dbcd438559e0092
parent10da0578c1f69a030b9ad96b4a07e92329bda55c
sink/source: Fix restore of volume on devices without hw volume

Module-device-restore sets reference_volume, but soft_volume remains at
zero dB, so if a device only has soft_volume (i e no hw volume controls),
its volume was not restored correctly.

Reported-by: Richardo Salveti de Araujo <ricardo.salveti@canonical.com>
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/pulsecore/sink.c
src/pulsecore/source.c