Skip to content

linux-rust: preserve the active A2DP profile#685

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

linux-rust: preserve the active A2DP profile#685
mmatczuk wants to merge 1 commit into
librepods-org:linux/rustfrom
mmatczuk:fix/linux-preserve-active-a2dp

Conversation

@mmatczuk

Copy link
Copy Markdown

Summary

  • expose the active profile in the owned PulseAudio card data
  • leave the card unchanged when any a2dp-sink profile is already active
  • preserve the codec negotiated by PipeWire instead of recreating the sink on playback start

Validation

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

Fixes #680

Switching between A2DP variants recreates the PipeWire sink and can stop the stream that triggered activation. Read the card's active profile and leave any existing a2dp-sink profile unchanged so playback keeps the codec negotiated by the audio stack.
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