pkgsrc-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[pkgsrc/trunk]: pkgsrc/audio/pulseaudio pulseaudio: Support more /dev/audio* ...
details: https://anonhg.NetBSD.org/pkgsrc/rev/f5c271d341ec
branches: trunk
changeset: 443582:f5c271d341ec
user: ryoon <ryoon%pkgsrc.org@localhost>
date: Thu Dec 17 09:42:59 2020 +0000
description:
pulseaudio: Support more /dev/audio* in OSS module
Bump PKGREVISION for NetBSD binary change.
diffstat:
audio/pulseaudio/Makefile | 4 +-
audio/pulseaudio/distinfo | 4 +-
audio/pulseaudio/patches/patch-src_modules_module-detect.c | 28 +++++++++-----
3 files changed, 22 insertions(+), 14 deletions(-)
diffs (91 lines):
diff -r 4f639e23636c -r f5c271d341ec audio/pulseaudio/Makefile
--- a/audio/pulseaudio/Makefile Thu Dec 17 09:16:42 2020 +0000
+++ b/audio/pulseaudio/Makefile Thu Dec 17 09:42:59 2020 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: Makefile,v 1.149 2020/12/04 04:55:42 riastradh Exp $
+# $NetBSD: Makefile,v 1.150 2020/12/17 09:42:59 ryoon Exp $
DISTNAME= pulseaudio-13.0
-PKGREVISION= 8
+PKGREVISION= 9
CATEGORIES= audio
MASTER_SITES= https://freedesktop.org/software/pulseaudio/releases/
EXTRACT_SUFX= .tar.xz
diff -r 4f639e23636c -r f5c271d341ec audio/pulseaudio/distinfo
--- a/audio/pulseaudio/distinfo Thu Dec 17 09:16:42 2020 +0000
+++ b/audio/pulseaudio/distinfo Thu Dec 17 09:42:59 2020 +0000
@@ -1,4 +1,4 @@
-$NetBSD: distinfo,v 1.71 2019/09/18 14:12:20 ryoon Exp $
+$NetBSD: distinfo,v 1.72 2020/12/17 09:42:59 ryoon Exp $
SHA1 (pulseaudio-13.0.tar.xz) = dd07a49f09821913c5ed1b131ea7f85f27085d0b
RMD160 (pulseaudio-13.0.tar.xz) = 3f55971ab45045dac6270a2a48ccaf900ae0951f
@@ -6,7 +6,7 @@
Size (pulseaudio-13.0.tar.xz) = 1901768 bytes
SHA1 (patch-configure.ac) = 6505b474f8d88baecb4638eccb84d3ab6fd56718
SHA1 (patch-src_Makefile.am) = 5dc602576f0d01498596cf8d1c3f3c12bfb5830b
-SHA1 (patch-src_modules_module-detect.c) = 09cce0611e8a8d793c7636e8d2a76e505ac7f0ef
+SHA1 (patch-src_modules_module-detect.c) = b68923d6adc6640d2eef4b50b54e3f9ec437d042
SHA1 (patch-src_modules_oss_module-oss.c) = 399ac178ae832619253ce8dd985edbed23db86e7
SHA1 (patch-src_modules_raop_raop-client.h) = 9fb7ae86a6852022f53aee3765777bd136250ffb
SHA1 (patch-src_pulsecore_mix__neon.c) = 6f6d33d38024d65045d637d48276e1ba92b81342
diff -r 4f639e23636c -r f5c271d341ec audio/pulseaudio/patches/patch-src_modules_module-detect.c
--- a/audio/pulseaudio/patches/patch-src_modules_module-detect.c Thu Dec 17 09:16:42 2020 +0000
+++ b/audio/pulseaudio/patches/patch-src_modules_module-detect.c Thu Dec 17 09:42:59 2020 +0000
@@ -1,30 +1,38 @@
-$NetBSD: patch-src_modules_module-detect.c,v 1.5 2018/07/06 14:10:15 ryoon Exp $
+$NetBSD: patch-src_modules_module-detect.c,v 1.6 2020/12/17 09:42:59 ryoon Exp $
Hack to set proper sound device on NetBSD.
---- src/modules/module-detect.c.orig 2018-05-11 11:43:30.000000000 +0000
+--- src/modules/module-detect.c.orig 2019-07-05 00:06:47.000000000 +0000
+++ src/modules/module-detect.c
-@@ -121,7 +121,19 @@ static int detect_alsa(pa_core *c, int j
+@@ -121,7 +121,27 @@ static int detect_alsa(pa_core *c, int j
static int detect_oss(pa_core *c, int just_one) {
FILE *f;
int n = 0, b = 0;
+ pa_module *m = NULL;
-
++
+#if defined(__NetBSD__)
+/*
-+ * Assume primary sound device is used (/dev/audio).
-+ * And only primary sound device will be used (n=1).
++ * Use audio and audio0 to audio3 that are enabled by default
++ * under NetBSD.
+ */
+ char args[64];
+
+ pa_snprintf(args, sizeof(args), "mmap=0 device=/dev/audio");
+ if (pa_module_load(&m, c, "module-oss", args) < 0)
-+ return 0;
-+ n = 1;
++ return 0;
++
++ for (int i = 0; i < 4; i++) {
++ pa_snprintf(args, sizeof(args), "mmap=0 device=/dev/audio%d", i);
++ if (pa_module_load(&m, c, "module-oss", args) < 0)
++ return i + 1;
++ }
++
++ n = 5;
+#else /* __linux__ or __FreeBSD__ */
if (!(f = pa_fopen_cloexec("/dev/sndstat", "r")) &&
!(f = pa_fopen_cloexec("/proc/sndstat", "r")) &&
!(f = pa_fopen_cloexec("/proc/asound/oss/sndstat", "r"))) {
-@@ -135,7 +147,6 @@ static int detect_oss(pa_core *c, int ju
+@@ -135,7 +155,6 @@ static int detect_oss(pa_core *c, int ju
while (!feof(f)) {
char line[256], args[64];
unsigned device;
@@ -32,7 +40,7 @@
if (!fgets(line, sizeof(line), f))
break;
-@@ -174,6 +185,7 @@ static int detect_oss(pa_core *c, int ju
+@@ -174,6 +193,7 @@ static int detect_oss(pa_core *c, int ju
}
fclose(f);
Home |
Main Index |
Thread Index |
Old Index