[Bug 240043] audio/linux-c7-alsa: how to make it work?
bugzilla-noreply at freebsd.org
bugzilla-noreply at freebsd.org
Sun Oct 6 13:34:23 UTC 2019
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=240043
--- Comment #63 from Tijl Coosemans <tijl at FreeBSD.org> ---
I had second thoughts about the patch. There are fewer thread priority levels
on FreeBSD than on Linux so the patch maps one FreeBSD priority level to
multiple Linux priority levels. With the patch it's possible for a Linux
thread to have a higher priority than another thread while the FreeBSD kernel
treats them as if they had the same level. That's a problem for SCHED_FIFO
threads because they just keep running until they are preempted by higher
priority threads. The current behaviour where FreeBSD announces fewer priority
levels via sched_get_priority_(min|max) is correct. A POSIX compliant program
is supposed to use priority levels from this range. FMOD blindly uses priority
levels that happen to work on current versions of Linux.
Another solution will have to be found. Either the preload trick or maybe
libfmod.so could be edited using something like "sed -i.bak
's,libasound\.so,/nonexistent,g' /path/to/libfmod.so"?
--
You are receiving this mail because:
You are the assignee for the bug.
You are on the CC list for the bug.
More information about the freebsd-emulation
mailing list