alsa-sink/source: Make sure volumes are synchronised after fast user switching
authorDavid Henningsson <david.henningsson@canonical.com>
Wed, 4 Apr 2012 15:07:13 +0000 (17:07 +0200)
committerDavid Henningsson <david.henningsson@canonical.com>
Wed, 11 Apr 2012 22:13:11 +0000 (00:13 +0200)
commit6961d3e1c71610504e5acf8bfd8c0ad042aa2af6
tree304a0d76b5732a74d08ab395c28d7f55e919d442
parent29e4b187a3dd3fd598d57ed6da88f4f67862cc33
alsa-sink/source: Make sure volumes are synchronised after fast user switching

Log in as user A, fast user switch to user B, let user B change
port, volume or mute status, then switch back to user A.

At this point we must make sure that the ALSA and PA volumes are
synchronised by writing to the ALSA mixer when the ALSA device
becomes available.

BugLink: https://bugs.launchpad.net/bugs/915035
Signed-off-by: David Henningsson <david.henningsson@canonical.com>
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source.c
src/pulsecore/source.h