alsa: ignore jack events when the user is inactive

See the big comment in the code for more details.

BugLink: https://bugs.freedesktop.org/show_bug.cgi?id=93259
This commit is contained in:
Tanu Kaskinen 2016-04-20 15:35:13 +03:00 committed by Arun Raghavan
parent a19e1e5382
commit fb52a6a6e6
3 changed files with 35 additions and 0 deletions

View file

@ -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;