mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-02 09:01:46 -05:00
core: add a suspend cause flags field
This commit is contained in:
parent
3af5f8cb55
commit
00797b8b6e
16 changed files with 83 additions and 40 deletions
|
|
@ -947,10 +947,10 @@ static int esd_proto_standby_or_resume(connection *c, esd_proto_t request, const
|
|||
connection_write(c, &ok, sizeof(int32_t));
|
||||
|
||||
if (request == ESD_PROTO_STANDBY)
|
||||
ok = pa_sink_suspend_all(c->protocol->core, TRUE) >= 0;
|
||||
ok = pa_sink_suspend_all(c->protocol->core, TRUE, PA_SUSPEND_USER) >= 0;
|
||||
else {
|
||||
pa_assert(request == ESD_PROTO_RESUME);
|
||||
ok = pa_sink_suspend_all(c->protocol->core, FALSE) >= 0;
|
||||
ok = pa_sink_suspend_all(c->protocol->core, FALSE, PA_SUSPEND_USER) >= 0;
|
||||
}
|
||||
|
||||
connection_write(c, &ok, sizeof(int32_t));
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue