From 6fd870a5f0f8b6675df92af7bfcff95805357ead Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 8 Mar 2021 17:40:32 +0100 Subject: [PATCH] alsa: pass the right direction to ucm_set_port() The function requires true for playback ports and false otherwise. See #867 --- spa/plugins/alsa/acp/acp.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/spa/plugins/alsa/acp/acp.c b/spa/plugins/alsa/acp/acp.c index b348e0ee4..640c46d60 100644 --- a/spa/plugins/alsa/acp/acp.c +++ b/spa/plugins/alsa/acp/acp.c @@ -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;