Lines Matching defs:cause
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
439 * cause, or it might just add unnecessary complexity, given that the
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
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) {
928 pa_assert(cause != 0);
931 merged_cause = s->suspend_cause | cause;
933 merged_cause = s->suspend_cause & ~cause;
3056 int pa_sink_suspend_all(pa_core *c, bool suspend, pa_suspend_cause_t cause) {
3063 pa_assert(cause != 0);
3068 if ((r = pa_sink_suspend(sink, suspend, cause)) < 0)