mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2025-10-29 05:40:27 -04:00
bluez5: remove battery when RFCOMM connection drops
There won't be further battery level updates when RFCOMM connection is down, so remove the battery then. Fix minor things with canceling the provider registration.
This commit is contained in:
parent
eb396f1ea8
commit
026e3882d2
3 changed files with 22 additions and 7 deletions
|
|
@ -161,6 +161,8 @@ extern "C" {
|
|||
|
||||
#define SPA_BT_UNKNOWN_DELAY 0
|
||||
|
||||
#define SPA_BT_NO_BATTERY ((uint8_t)255)
|
||||
|
||||
/* HFP uses SBC encoding with precisely defined parameters. Hence, the size
|
||||
* of the input (number of PCM samples) and output is known up front. */
|
||||
#define MSBC_DECODED_SIZE 240
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue