Lines Matching refs:cause
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
390 * cause, or it might just add unnecessary complexity, given that the
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
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) {
844 pa_assert(cause != 0);
846 if (s->monitor_of && cause != PA_SUSPEND_PASSTHROUGH)
850 merged_cause = s->suspend_cause | cause;
852 merged_cause = s->suspend_cause & ~cause;
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) {
2342 pa_assert(cause != 0);
2350 if ((r = pa_source_suspend(source, suspend, cause)) < 0)