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:
Pauli Virtanen 2021-04-05 14:58:50 +03:00 committed by Wim Taymans
parent eb396f1ea8
commit 026e3882d2
3 changed files with 22 additions and 7 deletions

View file

@ -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