mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
alsa: handle poll error
Recover after a poll error. This fixes resume after suspend. Fixes #3646
This commit is contained in:
parent
443751bf16
commit
0da4ea3b30
1 changed files with 5 additions and 0 deletions
|
|
@ -3204,6 +3204,11 @@ static void alsa_wakeup_event(struct spa_source *source)
|
|||
spa_log_trace_fp(state->log, "Woken up with no work to do");
|
||||
return;
|
||||
}
|
||||
if (revents & POLLERR) {
|
||||
spa_log_trace_fp(state->log, "poll error");
|
||||
if ((res = alsa_recover(state)) < 0)
|
||||
return;
|
||||
}
|
||||
} else {
|
||||
if (SPA_LIKELY(state->started)) {
|
||||
if (SPA_UNLIKELY((res = spa_system_timerfd_read(state->data_system,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue