* [PR PATCH] pipewire: add fix for usb devices from master
@ 2021-08-21 12:48 st3r4g
2021-08-21 13:33 ` [PR PATCH] [Merged]: " Duncaen
0 siblings, 1 reply; 2+ messages in thread
From: st3r4g @ 2021-08-21 12:48 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1773 bytes --]
There is a new pull request by st3r4g against master on the void-packages repository
https://github.com/st3r4g/void-packages pipewire-0.3.33-2
https://github.com/void-linux/void-packages/pull/32613
pipewire: add fix for usb devices from master
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1478
I was bitten by this and patch solves it. Although a new release is probably coming soon
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [ ] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
A patch file from https://github.com/void-linux/void-packages/pull/32613.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-pipewire-0.3.33-2-32613.patch --]
[-- Type: text/x-diff, Size: 2008 bytes --]
From 61bcd68cd8de8ee369062243b4f9dea642d248b2 Mon Sep 17 00:00:00 2001
From: Stefano Ragni <stefano.ragni@outlook.com>
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 <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
+
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: pipewire: add fix for usb devices from master
2021-08-21 12:48 [PR PATCH] pipewire: add fix for usb devices from master st3r4g
@ 2021-08-21 13:33 ` Duncaen
0 siblings, 0 replies; 2+ messages in thread
From: Duncaen @ 2021-08-21 13:33 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 1614 bytes --]
There's a merged pull request on the void-packages repository
pipewire: add fix for usb devices from master
https://github.com/void-linux/void-packages/pull/32613
Description:
https://gitlab.freedesktop.org/pipewire/pipewire/-/issues/1478
I was bitten by this and patch solves it. Although a new release is probably coming soon
<!-- Mark items with [x] where applicable -->
#### General
- [ ] This is a new package and it conforms to the [quality requirements](https://github.com/void-linux/void-packages/blob/master/Manual.md#quality-requirements)
#### Have the results of the proposed changes been tested?
- [x] I use the packages affected by the proposed changes on a regular basis and confirm this PR works for me
- [ ] I generally don't use the affected packages but briefly tested this PR
<!--
If GitHub CI cannot be used to validate the build result (for example, if the
build is likely to take several hours), make sure to
[skip CI](https://github.com/void-linux/void-packages/blob/master/CONTRIBUTING.md#continuous-integration).
When skipping CI, uncomment and fill out the following section.
Note: for builds that are likely to complete in less than 2 hours, it is not
acceptable to skip CI.
-->
<!--
#### Does it build and run successfully?
(Please choose at least one native build and, if supported, at least one cross build. More are better.)
- [ ] I built this PR locally for my native architecture, (ARCH-LIBC)
- [ ] I built this PR locally for these architectures (if supported. mark crossbuilds):
- [ ] aarch64-musl
- [ ] armv7l
- [ ] armv6l-musl
-->
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2021-08-21 13:33 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-08-21 12:48 [PR PATCH] pipewire: add fix for usb devices from master st3r4g
2021-08-21 13:33 ` [PR PATCH] [Merged]: " Duncaen
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).