Skip to content
GitLab
Projects Groups Topics Snippets
  • /
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Register
  • Sign in
  • pipewire pipewire
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributor statistics
    • Graph
    • Compare revisions
  • Issues 652
    • Issues 652
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 17
    • Merge requests 17
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages and registries
    • Packages and registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PipeWirePipeWire
  • pipewirepipewire
  • Merge requests
  • !603

bluez5: add hardware volume support

  • Review changes

  • Download
  • Patches
  • Plain diff
Merged Bao, Huang-Huang requested to merge eh5/pipewire:bt-abs-volume into master Apr 15, 2021
  • Overview 15
  • Commits 3
  • Pipelines 7
  • Changes 6

Add necessary apis to bluez transport.

Hardware volume is determined by the maximum value in channelVolumes array on card, maximum volume on node (software volume) is always set to 1.0f or larger.

Add A2DP(AVRCP) absolute volume support. Source volume can only update to adapter node but not from due to AG nodes don't have route.

Since A2DP/HSP/HFP volume is already percentage itself, it has been mapped to pulseaudio volume then converting to linear volume.


bluez5: add HSP/HFP hardware volume support

Only native backend is fulfilled.


Based on @pvir's prior work, although many parts are quite different now.

Known issues:

  • Use Android phone as source device, sometimes it ignores volume set from PW, causing volume out of sync with slider on phone.
  • Sink volume can't be restored, it prefers volume from remote device.

TODO:

  • More tests on HFP/HSP AG devices and others.
  • Add property to toggle hardware volume support.
Edited Apr 17, 2021 by Bao, Huang-Huang
Assignee
Assign to
Reviewers
Request review from
Time tracking
Source branch: bt-abs-volume