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:
Pauli Virtanen 2026-01-06 13:09:24 +02:00 committed by Wim Taymans
parent 260e8261d5
commit c96e58af01
2 changed files with 54 additions and 1 deletions

View file

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