summaryrefslogtreecommitdiff
path: root/src/pulsecore/sink.h
diff options
context:
space:
mode:
authorDavid Henningsson <david.henningsson@canonical.com>2012-04-04 17:07:13 +0200
committerDavid Henningsson <david.henningsson@canonical.com>2012-04-12 00:13:11 +0200
commit6961d3e1c71610504e5acf8bfd8c0ad042aa2af6 (patch)
tree304a0d76b5732a74d08ab395c28d7f55e919d442 /src/pulsecore/sink.h
parent29e4b187a3dd3fd598d57ed6da88f4f67862cc33 (diff)
downloadpulseaudio-panda-6961d3e1c71610504e5acf8bfd8c0ad042aa2af6.tar.gz
pulseaudio-panda-6961d3e1c71610504e5acf8bfd8c0ad042aa2af6.tar.bz2
pulseaudio-panda-6961d3e1c71610504e5acf8bfd8c0ad042aa2af6.zip
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>
Diffstat (limited to 'src/pulsecore/sink.h')
-rw-r--r--src/pulsecore/sink.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/pulsecore/sink.h b/src/pulsecore/sink.h
index 56fa735a..9bc80475 100644
--- a/src/pulsecore/sink.h
+++ b/src/pulsecore/sink.h
@@ -111,6 +111,7 @@ struct pa_sink {
pa_hashmap *ports;
pa_device_port *active_port;
+ pa_atomic_t mixer_dirty;
unsigned priority;
@@ -438,6 +439,7 @@ pa_bool_t pa_sink_get_mute(pa_sink *sink, pa_bool_t force_refresh);
pa_bool_t pa_sink_update_proplist(pa_sink *s, pa_update_mode_t mode, pa_proplist *p);
int pa_sink_set_port(pa_sink *s, const char *name, pa_bool_t save);
+void pa_sink_set_mixer_dirty(pa_sink *s, pa_bool_t is_dirty);
unsigned pa_sink_linked_by(pa_sink *s); /* Number of connected streams */
unsigned pa_sink_used_by(pa_sink *s); /* Number of connected streams which are not corked */