Skip to content

linux-rust: wait for A2DP profile enumeration#687

Open
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-wait-a2dp-enumeration
Open

linux-rust: wait for A2DP profile enumeration#687
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-wait-a2dp-enumeration

Conversation

@mmatczuk

Copy link
Copy Markdown

Summary

  • give a newly connected card a short grace period to enumerate A2DP profiles
  • keep WirePlumber restart as a last resort
  • retry card and profile discovery with bounded backoff after restart
  • avoid an unnecessary delay after the final failed attempt

Validation

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

Fixes #682

A newly connected card can appear before its A2DP profiles, and WirePlumber restart returns before pipewire-pulse has rebuilt the card. Give initial enumeration a short grace period, then poll with bounded backoff after a last-resort restart instead of racing a single immediate check.
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