bluez5: volume changes from headset should be saved

User changing volume via headset buttons should be treated on the same
level as changing from desktop UI.  Also initial headset volume should
be considered saved (even though session managers currently ignore the
initial route values on route restore).

Mark route as saved on volume events.
This commit is contained in:
Pauli Virtanen 2022-07-09 15:14:30 +03:00 committed by Wim Taymans
parent 77959a2c1c
commit fe7c6bcef9

View file

@ -371,6 +371,12 @@ static bool node_update_volume_from_transport(struct node *node, bool reset)
node_update_soft_volumes(node, t_volume->volume);
/*
* Consider volume changes from the headset as requested
* by the user, and to be saved by the SM.
*/
node->save = true;
return true;
}