Lines Matching defs:suspend
434 /* Here's something to think about: what to do with the suspend cause if
435 * resuming the sink fails? The old suspend cause will be incorrect, so we
436 * can't use that. On the other hand, if we set no suspend cause (as is the
438 * any cause. It might be a good idea to add a new "resume failed" suspend
440 * current approach of not setting any suspend cause works well enough. */
455 /* We know the state isn't changing. If the suspend cause isn't
480 /* We know the state isn't changing. If the suspend cause isn't
520 else if (i->suspend)
521 i->suspend(i, old_state, old_suspend_cause);
794 /* It's important to keep the suspend cause unchanged when unlinking,
795 * because if we remove the SESSION suspend cause here, the alsa sink
922 int pa_sink_suspend(pa_sink *s, bool suspend, pa_suspend_cause_t cause) {
930 if (suspend)
3056 int pa_sink_suspend_all(pa_core *c, bool suspend, pa_suspend_cause_t cause) {
3068 if ((r = pa_sink_suspend(sink, suspend, cause)) < 0)