e6f0ad0a28
This is an automated DistroBaker update from upstream sources. If you do not know what this is about or would like to opt out, contact the OSCI team. Source: https://src.fedoraproject.org/rpms/pipewire.git#84668a92e47c5c00cc1b075a14da4bbc981c1bda
30 lines
918 B
Diff
30 lines
918 B
Diff
From 74a8dde7d67f83bbb657d3889ed588110151f362 Mon Sep 17 00:00:00 2001
|
|
From: Wim Taymans <wtaymans@redhat.com>
|
|
Date: Mon, 8 Mar 2021 17:40:32 +0100
|
|
Subject: [PATCH 2/2] 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;
|
|
|
|
--
|
|
2.26.2
|
|
|