Lines Matching defs:suspend
385 /* Here's something to think about: what to do with the suspend cause if
386 * resuming the source fails? The old suspend cause will be incorrect, so we
387 * can't use that. On the other hand, if we set no suspend cause (as is the
389 * any cause. It might be a good idea to add a new "resume failed" suspend
391 * current approach of not setting any suspend cause works well enough. */
406 /* We know the state isn't changing. If the suspend cause isn't
431 /* We know the state isn't changing. If the suspend cause isn't
471 else if (o->suspend)
472 o->suspend(o, old_state, old_suspend_cause);
728 /* It's important to keep the suspend cause unchanged when unlinking,
729 * because if we remove the SESSION suspend cause here, the alsa
838 int pa_source_suspend(pa_source *s, bool suspend, pa_suspend_cause_t cause) {
849 if (suspend)
873 /* The monitor source usually has the same state and suspend cause as the
876 * PASSTHROUGH suspend cause, then we have to keep the monitor suspended
2335 int pa_source_suspend_all(pa_core *c, bool suspend, pa_suspend_cause_t cause) {
2350 if ((r = pa_source_suspend(source, suspend, cause)) < 0)