mirror of
https://github.com/void-linux/void-packages.git
synced 2025-04-26 11:10:31 +02:00
pipewire: add fix for usb devices from master
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1478
This commit is contained in:
parent
508d761519
commit
007f3ecc7d
2 changed files with 32 additions and 1 deletions
31
srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch
Normal file
31
srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch
Normal file
|
@ -0,0 +1,31 @@
|
|||
From 0a5a4c046d10c0a53c7d2120a523cc28663ad73b Mon Sep 17 00:00:00 2001
|
||||
From: Wim Taymans <wtaymans@redhat.com>
|
||||
Date: Tue, 10 Aug 2021 11:23:48 +0200
|
||||
Subject: [PATCH] alsa: Free global state
|
||||
|
||||
We need to do this or else newly plugged devices might not load.
|
||||
|
||||
It does not seem to harm UCM config on my machine, so this reverts
|
||||
3d372424ccb96fd2b705c9ed94e76a82ad44e113
|
||||
|
||||
See #1478
|
||||
---
|
||||
spa/plugins/alsa/alsa-pcm.c | 2 ++
|
||||
1 file changed, 2 insertions(+)
|
||||
|
||||
diff --git a/spa/plugins/alsa/alsa-pcm.c b/spa/plugins/alsa/alsa-pcm.c
|
||||
index 30fbbba6e..299bf03ff 100644
|
||||
--- a/spa/plugins/alsa/alsa-pcm.c
|
||||
+++ b/spa/plugins/alsa/alsa-pcm.c
|
||||
@@ -20,6 +20,8 @@ int spa_alsa_init(struct state *state)
|
||||
{
|
||||
int err;
|
||||
|
||||
+ snd_config_update_free_global();
|
||||
+
|
||||
if (state->open_ucm) {
|
||||
char card_name[64];
|
||||
const char *alibpref = NULL;
|
||||
--
|
||||
GitLab
|
||||
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'pipewire'
|
||||
pkgname=pipewire
|
||||
version=0.3.33
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=meson
|
||||
configure_args="
|
||||
--auto-features=enabled
|
||||
|
|
Loading…
Add table
Reference in a new issue