mirror of
https://gitlab.freedesktop.org/pulseaudio/pulseaudio.git
synced 2025-10-29 05:40:23 -04:00
oss: do not fall back to write() mode on FreeBSD
This has been patched out in FreeBSD Ports for ages. Part-of: <https://gitlab.freedesktop.org/pulseaudio/pulseaudio/-/merge_requests/277>
This commit is contained in:
parent
eccffaba26
commit
de2093fcc7
1 changed files with 2 additions and 0 deletions
|
|
@ -1229,10 +1229,12 @@ int pa__init(pa_module*m) {
|
|||
use_mmap = false;
|
||||
}
|
||||
|
||||
#ifndef __FreeBSD__
|
||||
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);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue