Skip to content
GitLab
  • Menu
Projects Groups Snippets
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • pulseaudio pulseaudio
  • Project information
    • Project information
    • Activity
    • Labels
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 863
    • Issues 863
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 49
    • Merge requests 49
  • CI/CD
    • CI/CD
    • Pipelines
    • Jobs
    • Schedules
  • Deployments
    • Deployments
    • Environments
    • Releases
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Monitor
    • Monitor
    • Incidents
  • Analytics
    • Analytics
    • Value stream
    • CI/CD
    • Repository
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
Collapse sidebar
  • PulseAudio
  • pulseaudiopulseaudio
  • Merge requests
  • !474

bluetooth: allow increasing output bitrate for SBC codec

  • Review changes

  • Download
  • Email patches
  • Plain diff
Merged Igor Kovalenko requested to merge igor.v.kovalenko/pulseaudio:pr/sbc-allow-increasing-bitrate into master Jan 19, 2021
  • Overview 4
  • Commits 1
  • Pipelines 4
  • Changes 1

Bluetooth thread may ask encoder to reduce bitrate if writing is not keeping up with inputs or writing to bluetooth socket takes too much time.

SBC codec decrements bitpool value by fixed amount each time it is asked to reduce output bitrate. This results in reduced audio quality with SBC codec.

Assuming conditions leading to reduced bitrate are intermittent, allow periodic attempts to increase encoder bitrate, by default at most twice per second.

For SBC codec increase output bitrate by adding 1 to bitpool value each time encoder bitrate needs to be increased, so that SBC quality can be restored. While at it, remove bitpool decrement limit to use connection agreed value instead as we will be able to restore quality later.

This change implements SBC part on top of common changes in !481 (merged)

Edited Jan 20, 2021 by Igor Kovalenko
Assignee
Assign to
Reviewer
Request review from
Time tracking
Source branch: pr/sbc-allow-increasing-bitrate