mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-11-08 13:29:59 -05:00
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:
parent
a19e1e5382
commit
fb52a6a6e6
3 changed files with 35 additions and 0 deletions
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue