acp: sync the mixer after selecting the port

Otherwise we might sync the wrong port and end up muted.

Fixes #4084
This commit is contained in:
Alper Nebi Yasak 2024-09-25 10:02:46 +02:00 committed by Wim Taymans
parent ed0556e34c
commit d42bfa56b7

View file

@ -1962,8 +1962,8 @@ int acp_device_set_port(struct acp_device *dev, uint32_t port_index, uint32_t fl
d->mixer_path = data->path;
mixer_volume_init(impl, d);
sync_mixer(d, p);
res = pa_alsa_ucm_set_port(d->ucm_context, p);
sync_mixer(d, p);
} else {
pa_alsa_port_data *data;