mirror of
https://gitlab.freedesktop.org/pipewire/pipewire.git
synced 2026-03-17 05:33:55 -04:00
bluez5: handle BAP device set volume change notifications
Update volume state on device set volume notifications. When one device sends volume notification, CAP specifies volume on other devices shall be synchronized too.
This commit is contained in:
parent
260e8261d5
commit
c96e58af01
2 changed files with 54 additions and 1 deletions
|
|
@ -3813,7 +3813,8 @@ static int transport_update_props(struct spa_bt_transport *transport,
|
|||
t_volume->active = true;
|
||||
t_volume->new_hw_volume = value;
|
||||
|
||||
if (transport->profile & SPA_BT_PROFILE_A2DP_SINK)
|
||||
if ((transport->profile & SPA_BT_PROFILE_A2DP_SINK) ||
|
||||
((transport->profile & SPA_BT_PROFILE_BAP_DUPLEX) && transport->bap_initiator))
|
||||
spa_bt_transport_start_volume_timer(transport);
|
||||
else
|
||||
spa_bt_transport_volume_changed(transport);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue