bluez5: cache a2dp volumes activation info

So we don't get a sudden boost on soft volumes when switching profile/codec.
This commit is contained in:
Huang-Huang Bao 2021-04-21 09:18:13 +08:00 committed by Wim Taymans
parent 51c3290d11
commit 0dde4f8774
2 changed files with 20 additions and 7 deletions

View file

@ -424,6 +424,10 @@ struct spa_bt_device {
int has_battery;
uint32_t hw_volume_profiles;
/* Even tought A2DP volume is exposed on transport interface, the
* volume activation info would not be variate between transports
* under same device. So it's safe to cache activation info here. */
bool a2dp_volume_active[2];
struct spa_hook_list listener_list;
bool added;