From 61bcd68cd8de8ee369062243b4f9dea642d248b2 Mon Sep 17 00:00:00 2001 From: Stefano Ragni Date: Sat, 21 Aug 2021 14:40:58 +0200 Subject: [PATCH] pipewire: add fix for usb devices from master https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1478 --- .../patches/fix-hotplug-usb-devices.patch | 31 +++++++++++++++++++ srcpkgs/pipewire/template | 2 +- 2 files changed, 32 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch diff --git a/srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch b/srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch new file mode 100644 index 000000000000..82c7c38cbc16 --- /dev/null +++ b/srcpkgs/pipewire/patches/fix-hotplug-usb-devices.patch @@ -0,0 +1,31 @@ +From 0a5a4c046d10c0a53c7d2120a523cc28663ad73b Mon Sep 17 00:00:00 2001 +From: Wim Taymans +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 + diff --git a/srcpkgs/pipewire/template b/srcpkgs/pipewire/template index 679d012f1d97..d82f8f9b4062 100644 --- a/srcpkgs/pipewire/template +++ b/srcpkgs/pipewire/template @@ -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