freebsd-ports/audio/pulseaudio/files/patch-src_modules_oss_module-oss.c
Steve Wills bb497689a8 audio/pulseaudio: Update to 12.2
PR:		229192
Submitted by:	lightside <lightside@gmx.com>
2018-11-09 15:32:15 +00:00

17 lines
627 B
C

--- src/modules/oss/module-oss.c.orig 2018-05-07 14:30:52 UTC
+++ src/modules/oss/module-oss.c
@@ -1235,10 +1235,14 @@ int pa__init(pa_module*m) {
use_mmap = false;
}
+#ifndef __FreeBSD__
+/* Disable mmap. The OSS on FreeBSD doesn't support read & write on
+ the same socket */
if (use_mmap && mode == O_WRONLY) {
pa_log_info("Device opened for playback only, cannot do memory mapping, falling back to UNIX write() mode.");
use_mmap = false;
}
+#endif
if (pa_oss_get_hw_description(dev, hwdesc, sizeof(hwdesc)) >= 0)
pa_log_info("Hardware name is '%s'.", hwdesc);