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 1bdb01d6fd
commit 2767c65b06

View file

@ -1885,9 +1885,9 @@ 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,
dev->direction == ACP_DIRECTION_PLAYBACK);
sync_mixer(d, p);
} else {
pa_alsa_port_data *data;