alsa: pass the right direction to ucm_set_port()

The function requires true for playback ports and false otherwise.

See #867
This commit is contained in:
Wim Taymans 2021-03-08 17:40:32 +01:00
parent cab5cf3ccb
commit 6fd870a5f0

View file

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