alsa: save volumes

Instruct the session manager to save the volumes when set with the
ALSA ctrl API.
This commit is contained in:
Wim Taymans 2022-09-01 09:43:10 +02:00
parent c8ef655b3e
commit 3215b58bae

View file

@ -532,6 +532,7 @@ static int set_volume_mute(snd_ctl_pipewire_t *ctl, const char *name, struct vol
spa_pod_builder_add(&b,
SPA_PARAM_ROUTE_index, SPA_POD_Int(id),
SPA_PARAM_ROUTE_device, SPA_POD_Int(device_id),
SPA_PARAM_ROUTE_save, true,
0);
spa_pod_builder_prop(&b, SPA_PARAM_ROUTE_props, 0);