Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 24 Jun 2010 19:10:04 -0400
From:      Jung-uk Kim <jkim@FreeBSD.org>
To:        gnome@FreeBSD.org
Subject:   [PATCH] OSS device detection for pulseaudio
Message-ID:  <201006241910.13456.jkim@FreeBSD.org>

next in thread | raw e-mail | index | archive | help

--Boundary-00=_VX+IMR0hfW257sM
Content-Type: text/plain;
  charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
Content-Disposition: inline

Pulseaudio detects /dev/dspN.0 instead of /dev/dspN where N is a 
device unit number.  We should not reference a virtual channel 0, 
which is automatically cloned from /dev/dspN.  Please review the 
attached trivial patch.

Thanks,

Jung-uk Kim

--Boundary-00=_VX+IMR0hfW257sM
Content-Type: text/plain;
  charset="iso-8859-1";
  name="pulseaudio.diff"
Content-Transfer-Encoding: 7bit
Content-Disposition: attachment;
	filename="pulseaudio.diff"

Index: audio/pulseaudio/Makefile
===================================================================
RCS file: /home/pcvs/ports/audio/pulseaudio/Makefile,v
retrieving revision 1.59
diff -u -r1.59 Makefile
--- audio/pulseaudio/Makefile	31 May 2010 01:57:31 -0000	1.59
+++ audio/pulseaudio/Makefile	24 Jun 2010 22:59:28 -0000
@@ -12,7 +12,7 @@
 
 PORTNAME=	pulseaudio
 PORTVERSION=	0.9.21
-PORTREVISION=	4
+PORTREVISION=	5
 CATEGORIES=	audio
 MASTER_SITES=	http://0pointer.de/lennart/projects/${PORTNAME}/
 
Index: audio/pulseaudio/files/patch-src_modules_module-detect.c
===================================================================
RCS file: audio/pulseaudio/files/patch-src_modules_module-detect.c
diff -N audio/pulseaudio/files/patch-src_modules_module-detect.c
--- /dev/null	1 Jan 1970 00:00:00 -0000
+++ audio/pulseaudio/files/patch-src_modules_module-detect.c	24 Jun 2010 22:59:28 -0000
@@ -0,0 +1,12 @@
+--- src/modules/module-detect.c.orig	2009-11-22 22:57:05.000000000 -0500
++++ src/modules/module-detect.c	2010-06-17 19:20:39.000000000 -0400
+@@ -161,8 +161,7 @@
+                 continue;
+ 
+         } else if (sscanf(line, "pcm%u: ", &device) == 1) {
+-            /* FreeBSD support, the devices are named /dev/dsp0.0, dsp0.1 and so on */
+-            pa_snprintf(args, sizeof(args), "device=/dev/dsp%u.0", device);
++            pa_snprintf(args, sizeof(args), "device=/dev/dsp%u", device);
+ 
+             if (!pa_module_load(c, "module-oss", args))
+                 continue;

--Boundary-00=_VX+IMR0hfW257sM--



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201006241910.13456.jkim>