pass pa_suspend_cause_t to set_state() callbacks
authorTanu Kaskinen <tanuk@iki.fi>
Mon, 19 Feb 2018 14:48:23 +0000 (16:48 +0200)
committerTanu Kaskinen <tanuk@iki.fi>
Thu, 22 Feb 2018 07:13:40 +0000 (09:13 +0200)
commit6ed37aeef28708f8da34a16c7035fa1331fa13cb
treed4f18684819c18b3bf6d9844f02b10864398b42e
parent3da0de5418b29c90974d0d3e2198c471c39d229f
pass pa_suspend_cause_t to set_state() callbacks

The suspend cause isn't yet used by any of the callbacks. The alsa sink
and source will use it to sync the mixer when the SESSION suspend cause
is removed. Currently the syncing is done in pa_sink/source_suspend(),
and I want to change that, because pa_sink/source_suspend() shouldn't
have any alsa specific code.
17 files changed:
src/modules/alsa/alsa-sink.c
src/modules/alsa/alsa-source.c
src/modules/echo-cancel/module-echo-cancel.c
src/modules/macosx/module-coreaudio-device.c
src/modules/module-combine-sink.c
src/modules/module-equalizer-sink.c
src/modules/module-ladspa-sink.c
src/modules/module-remap-sink.c
src/modules/module-remap-source.c
src/modules/module-tunnel.c
src/modules/module-virtual-sink.c
src/modules/module-virtual-source.c
src/modules/module-virtual-surround-sink.c
src/pulsecore/sink.c
src/pulsecore/sink.h
src/pulsecore/source.c
src/pulsecore/source.h