Skip to content

linux-rust: release AACP state before playback takeover#689

Open
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-release-aacp-state
Open

linux-rust: release AACP state before playback takeover#689
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-release-aacp-state

Conversation

@mmatczuk

Copy link
Copy Markdown

Summary

  • snapshot ear detection and connected-device state at the playback transition
  • release the AACP state mutex before A2DP activation and takeover packet sends
  • allow incoming events and queued control commands to proceed during profile recovery

Validation

  • cargo check --manifest-path linux-rust/Cargo.toml
  • cargo nextest run --manifest-path linux-rust/Cargo.toml --no-tests pass

Fixes #684

The listener only needs a snapshot of ear detection and connected devices, but kept the AACP mutex while activating audio and sending takeover packets. Copy those values and release the guard first so incoming events and queued control commands are not blocked by profile enumeration or restart delays.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant