Repository navigation
pulse: recover disconnected streams and retry AAudio in the retained server - #133
Draft
Leeestephen wants to merge 1 commit into
Draft
Leeestephen wants to merge 1 commit into
Leeestephen wants to merge 1 commit into
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Detect a retained AAudio stream whose state is DISCONNECTED even when
requestStart returns INVALID_STATE. Reopen that stream on resume and retain
the existing asynchronous completion notification.
Keep a running PulseAudio server/socket when Android audio is not ready yet.
Use one bounded worker to retry the AAudio sink and select it as default, so
existing clients can migrate from auto_null. Verify the worker command identity
before signalling a PID read from persistent runtime storage. Prefer the
idle-safe AAudio configuration, retaining OpenSL ES as a documented alternative.
Testing
Ten host tests pass for worker bounds, server loss, module/default-sink decisions,
PID ownership and an eight-case matrix executing the actual resume function
against recording stubs. Shell syntax checks pass. Earlier integrated device
controls demonstrated same-server auto_null-to-Android migration and audible
cold-boot playback on alioth.
A complete rebuilt Android audio-module test and exact-revision route/cold-boot
acceptance remain pending. The separate startup PR supplies verified-domain
launch and BusyBox UID switching. Both branches are based directly on main.