* Pulse PCM: stale notification pipe can cause repeated poll wakeups without readiness
[not found] <18ed93b4ae1ae600-webhooks-bot@alsa-project.org>
@ 2026-12-02 23:30 ` GitHub issues - opened
0 siblings, 0 replies; only message in thread
From: GitHub issues - opened @ 2026-12-02 23:30 UTC (permalink / raw)
To: alsa-devel
alsa-project/alsa-plugins issue #69 was opened from aibarz:
A candidate fix for a reproducible stale-readiness condition in pulse/pcm_pulse.c is documented here:
https://gist.github.com/aibarz/89e321262222e5baba4a7b66df5a925d
When check_active() returns zero, pulse_pcm_poll_revents() clears the reported events but can leave the notification pipe readable. The candidate drains stale notifications using pulse_poll_deactivate() under the existing mainloop lock. Positive readiness and error paths remain unchanged.
The same callback behavior was inspected in ALSA master. Comparative tests were run on the Waydroid fork using real native Linux libraries and an isolated PipeWire/PulseAudio-compatible session. Across 12,000 forced stale-readiness cases per version, the original retained 12,000 false wakeups, whereas the candidate retained none; valid readiness was preserved in all 12,000 cases. Playback and capture regression tests also passed.
The linked Gist contains the bilingual explanation, patch, modified source and original license. This is a tested candidate for a conditional defect, not yet proof of the cause of naturally occurring Android audio HAL hangs. ALSA master itself has not yet been built/tested in this investigation. Android ABI and live validation remain pending.
Could maintainers review the synchronization and suggest a suitable upstream regression test?
Related symptom report (causal connection unconfirmed): https://github.com/waydroid/waydroid/issues/1683
Español: se ha reproducido y corregido en laboratorio una condicion de notificacion obsoleta. La documentacion completa y las limitaciones estan en el Gist enlazado.
Issue URL : https://github.com/alsa-project/alsa-plugins/issues/69
Repository URL: https://github.com/alsa-project/alsa-plugins
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2026-12-02 23:31 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <18ed93b4ae1ae600-webhooks-bot@alsa-project.org>
2026-12-02 23:30 ` Pulse PCM: stale notification pipe can cause repeated poll wakeups without readiness GitHub issues - opened
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.