diff options
Diffstat (limited to 'src/pulsecore/card.c')
-rw-r--r-- | src/pulsecore/card.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/pulsecore/card.c b/src/pulsecore/card.c index 0eaccff10..72ecd4e80 100644 --- a/src/pulsecore/card.c +++ b/src/pulsecore/card.c @@ -364,6 +364,11 @@ int pa_card_suspend(pa_card *c, bool suspend, pa_suspend_cause_t cause) { pa_assert(c); pa_assert(cause != 0); + if (suspend) + c->suspend_cause |= cause; + else + c->suspend_cause &= ~cause; + PA_IDXSET_FOREACH(sink, c->sinks, idx) { int r; |