* [PR PATCH] eudev: import upstream patch for audio
@ 2025-01-07 11:46 dkwo
2025-01-11 21:22 ` [PR PATCH] [Merged]: " classabbyamp
0 siblings, 1 reply; 2+ messages in thread
From: dkwo @ 2025-01-07 11:46 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 455 bytes --]
There is a new pull request by dkwo against master on the void-packages repository
https://github.com/dkwo/void-packages eudev-sound
https://github.com/void-linux/void-packages/pull/53875
eudev: import upstream patch for audio
- I tested the changes in this PR: yes, on aarch64 Apple silicon
- I built this PR locally for my native architecture, (x86_64-glibc)
A patch file from https://github.com/void-linux/void-packages/pull/53875.patch is attached
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: github-pr-eudev-sound-53875.patch --]
[-- Type: text/x-diff, Size: 2760 bytes --]
From 0787923dfb27217f115464f03d392b551ae5d1d7 Mon Sep 17 00:00:00 2001
From: dkwo <nicolopiazzalunga@gmail.com>
Date: Tue, 7 Jan 2025 12:43:33 +0100
Subject: [PATCH] eudev: import upstream patch for audio
---
.../eudev/patches/78-sound-card.rules.patch | 42 +++++++++++++++++++
srcpkgs/eudev/template | 2 +-
2 files changed, 43 insertions(+), 1 deletion(-)
create mode 100644 srcpkgs/eudev/patches/78-sound-card.rules.patch
diff --git a/srcpkgs/eudev/patches/78-sound-card.rules.patch b/srcpkgs/eudev/patches/78-sound-card.rules.patch
new file mode 100644
index 00000000000000..d17fac077665b0
--- /dev/null
+++ b/srcpkgs/eudev/patches/78-sound-card.rules.patch
@@ -0,0 +1,42 @@
+From 917ae648f61681257000c3a1f0aca3fbd646563a Mon Sep 17 00:00:00 2001
+From: Johannes Nixdorf <mixi@shadowice.org>
+Date: Fri, 22 Dec 2023 10:27:08 +0100
+Subject: [PATCH] 78-sound-card.rules: Import ID_PATH early
+
+Pipewire requires ID_PATH to use the same device names as with systemd's
+udev. Some rules, such as the ones in asahi-audio [1] use those names, and
+fail if they don't match [2].
+
+On systemd's udev this is instead imported in 71-seat.rules, which we don't
+have.
+
+[1]: https://github.com/AsahiLinux/asahi-audio
+[2]: https://github.com/AsahiLinux/asahi-audio/issues/16
+
+Signed-off-by: Johannes Nixdorf <mixi@shadowice.org>
+---
+ rules/78-sound-card.rules | 4 ++--
+ 1 file changed, 2 insertions(+), 2 deletions(-)
+
+diff --git a/rules/78-sound-card.rules b/rules/78-sound-card.rules
+index f2fc27739..c49bd1d4e 100644
+--- a/rules/78-sound-card.rules
++++ b/rules/78-sound-card.rules
+@@ -38,6 +38,8 @@ KERNEL!="card*", GOTO="sound_end"
+ ENV{SOUND_INITIALIZED}="1"
+
+ IMPORT{builtin}="hwdb"
++IMPORT{builtin}="path_id"
++
+ SUBSYSTEMS=="usb", IMPORT{builtin}="usb_id"
+ SUBSYSTEMS=="usb", GOTO="skip_pci"
+
+@@ -62,8 +64,6 @@ LABEL="skip_pci"
+ ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="?*", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}-$env{ID_USB_INTERFACE_NUM}"
+ ENV{ID_SERIAL}=="?*", ENV{ID_USB_INTERFACE_NUM}=="", ENV{ID_ID}="$env{ID_BUS}-$env{ID_SERIAL}"
+
+-IMPORT{builtin}="path_id"
+-
+ # The values used here for $SOUND_FORM_FACTOR and $SOUND_CLASS should be kept
+ # in sync with those defined for PulseAudio's src/pulse/proplist.h
+ # PA_PROP_DEVICE_FORM_FACTOR, PA_PROP_DEVICE_CLASS properties.
diff --git a/srcpkgs/eudev/template b/srcpkgs/eudev/template
index b6f711587f6a9f..1460bcdb133729 100644
--- a/srcpkgs/eudev/template
+++ b/srcpkgs/eudev/template
@@ -4,7 +4,7 @@ _UDEV_VERSION="251" # compatible udev version provided
pkgname=eudev
version=3.2.14
-revision=1
+revision=2
build_style=gnu-configure
configure_args="--enable-hwdb --enable-manpages"
hostmakedepends="pkg-config gperf"
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PR PATCH] [Merged]: eudev: import upstream patch for audio
2025-01-07 11:46 [PR PATCH] eudev: import upstream patch for audio dkwo
@ 2025-01-11 21:22 ` classabbyamp
0 siblings, 0 replies; 2+ messages in thread
From: classabbyamp @ 2025-01-11 21:22 UTC (permalink / raw)
To: ml
[-- Attachment #1: Type: text/plain, Size: 306 bytes --]
There's a merged pull request on the void-packages repository
eudev: import upstream patch for audio
https://github.com/void-linux/void-packages/pull/53875
Description:
- I tested the changes in this PR: yes, on aarch64 Apple silicon
- I built this PR locally for my native architecture, (x86_64-glibc)
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2025-01-11 21:22 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2025-01-07 11:46 [PR PATCH] eudev: import upstream patch for audio dkwo
2025-01-11 21:22 ` [PR PATCH] [Merged]: " classabbyamp
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).