alsa-sink/source: Really set volumes on port change
authorDavid Henningsson <david.henningsson@canonical.com>
Tue, 3 Apr 2012 19:35:07 +0000 (21:35 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 4 Apr 2012 12:36:43 +0000 (14:36 +0200)
commit87edc1ccb0846066424f9158acd8fb9e089db0e5
treed57e98e67b27f6d6ae90e18f20a05ed7cdaa1900
parente815a1f81a5a018f8d7c8f6be7f93e600606ed24
alsa-sink/source: Really set volumes on port change

If deferred volumes were activated, set_volume does not really set
the volume, and is probably only meant to be called from the main
thread.
As we're currently really setting the port and the mute here (i e
modifying ALSA), we should really modify the volume as well.

Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c