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 5bed12569d
commit 351bc9ac3c

View file

@ -1957,8 +1957,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;