mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-03 09:01:50 -05:00
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.
This commit is contained in:
parent
3da0de5418
commit
6ed37aeef2
17 changed files with 58 additions and 27 deletions
|
|
@ -1087,7 +1087,7 @@ static int source_process_msg(pa_msgobject *o, int code, void *data, int64_t off
|
|||
}
|
||||
|
||||
/* Called from main context */
|
||||
static int source_set_state_cb(pa_source *s, pa_source_state_t new_state) {
|
||||
static int source_set_state_cb(pa_source *s, pa_source_state_t new_state, pa_suspend_cause_t new_suspend_cause) {
|
||||
pa_source_state_t old_state;
|
||||
struct userdata *u;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue