Commit Graph

12 Commits

Author SHA1 Message Date
Florian Walpen 819f46147e
FreeBSD: Override UpdateLatencies() to fit OSS latencies.
Reduce the base latencies for capture and playback by half a period,
and let the update method account for the additional playback latency
introduced by OSS buffer management.
This fits actual OSS latencies better, so the same settings for the
extra input-latency and output-latency parameters should apply to
different period lengths.

Beware that this change invalidates current input-latency and
output-latency values, they have to be measured again.
2022-05-30 01:22:54 +02:00
Florian Walpen 37d6369ad3
FreeBSD: Cleanup unused SNDCTL_AUDIOINFO code.
Fixes a scan-build warning about using uninitialized values.
2022-01-22 21:40:40 +01:00
Florian Walpen a1ea8a9bb5 FreeBSD: Add missing OSS option --excl to man page.
While there, also improve the short description of this option in the
OSS backend part of usage help and jack_control.
2022-01-15 15:09:56 +00:00
Florian Walpen b5597128c2 FreeBSD: Big driver overhaul for FreeBSD OSS.
Features:
 * Internal workings more in line with other Jack drivers.
 * Use poll() for wait and sync instead of blocking I/O.
 * Allows to use Jack in "async" mode.
 * Calculate DSP usage correctly.
 * OSS buffer management to achieve stable latencies.
 * Latency correction for asymmetric OSS buffer use.
 * More robust handling of over- and underruns.
 * Handle format changes forced by the OSS interface.
 * FreeBSD 24bit samples are always packed.

No changes to the driver parameters or the user interface.
2022-01-15 15:09:55 +00:00
Florian Walpen b6f93234ef FreeBSD: Specific FreeBSD OSS driver.
Start with an unchanged copy of the Solaris OSS driver.
2022-01-15 15:09:55 +00:00
Florian Walpen 2e3c6fab02 FreeBSD: Use uptime.h relay include. 2022-01-15 15:09:55 +00:00
Florian Walpen 7c81691e38 FreeBSD: Use driver.h relay include. 2022-01-15 15:09:55 +00:00
Florian Walpen f94f285ca5 FreeBSD: Cleanup tab indents. 2022-01-15 15:09:55 +00:00
Goran Mekić 25e09df3a6 It compiles 2022-01-15 15:09:55 +00:00
Greg V ada406603c dbus: use Linux style uptime on FreeBSD 2022-01-15 15:09:55 +00:00
Greg V 92e9596aa5 Put the clock_gettime based time impl into posix/ 2022-01-15 15:09:55 +00:00
Goran Mekić 5c667d5282 Add FreeBSD support 2022-01-15 15:09:55 +00:00