openbsd-ports/audio/pulseaudio/patches/patch-src_utils_padsp_c
ajacoutot 7482052466 Update to pulseaudio-2.0.
ok robert@ (maintainer)
2012-05-14 17:45:16 +00:00

25 lines
732 B
Plaintext

$OpenBSD: patch-src_utils_padsp_c,v 1.3 2012/05/14 17:45:16 ajacoutot Exp $
- Fix path to soundcard.h
- Add another output device
--- src/utils/padsp.c.orig Wed Apr 4 11:36:44 2012
+++ src/utils/padsp.c Mon May 14 16:18:28 2012
@@ -32,7 +32,7 @@
#define _LARGEFILE64_SOURCE 1
#endif
-#include <sys/soundcard.h>
+#include <soundcard.h>
#include <sys/ioctl.h>
#include <pthread.h>
#include <unistd.h>
@@ -1518,6 +1518,7 @@ static pa_bool_t is_audio_device_node(const char *path
pa_streq(path, "/dev/dsp") ||
pa_streq(path, "/dev/adsp") ||
pa_streq(path, "/dev/audio") ||
+ pa_streq(path, "/dev/sound") ||
pa_streq(path, "/dev/sndstat") ||
pa_streq(path, "/dev/mixer");
}