Makes libossaudio use sndio instead of the kernel mixer(4) interface.Programs will see the device handled by sndiod (instead of the firstone) and will always get access at least the sndiod master
Makes libossaudio use sndio instead of the kernel mixer(4) interface.Programs will see the device handled by sndiod (instead of the firstone) and will always get access at least the sndiod master levelcontrol. If present, hardware master input and output volumes areexposed as well.feedback from landry and sthen, "do it" deraadt
show more ...
When system calls indicate an error they return -1, not some arbitraryvalue < 0. errno is only updated in this case. Change all (most?)callers of syscalls to follow this better, and let's see if
When system calls indicate an error they return -1, not some arbitraryvalue < 0. errno is only updated in this case. Change all (most?)callers of syscalls to follow this better, and let's see if this strictnesshelps us in the future.
remove a misleading comment; ok ratchov@
use .In rather than .Fd #include
We don't want LIBRARY sections in OpenBSD, so delete it.
Make SNDCLT_DSP_* ioctls return ENOTTY, and remove the correspondingcode. No ABI change.ok armani@, guenther@, sthen@
Do not need to include <sys/cdefs.h> when headers included above end updoing so.
zap trailing newlines; "go for it" deraadt
Switch time_t, ino_t, clock_t, and struct kevent's ident and datamembers to 64bit types. Assign new syscall numbers for (almostall) the syscalls that involve the affected types, including anything
Switch time_t, ino_t, clock_t, and struct kevent's ident and datamembers to 64bit types. Assign new syscall numbers for (almostall) the syscalls that involve the affected types, including anythingwith time_t, timeval, itimerval, timespec, rusage, dirent, stat,or kevent arguments. Add a d_off member to struct dirent and replacegetdirentries() with getdents(), thus immensely simplifying andaccelerating telldir/seekdir. Build perl with -DBIG_TIME.Bump the major on every single base library: the compat bits includedhere are only good enough to make the transition; the T32 compatoption will be burned as soon as we've reached the new world areare happy with the snapshots for all architectures.DANGER: ABI incompatibility. Updating to this kernel requires extrawork or you won't be able to login: install a snapshot instead.Much assistance in fixing userland issues from deraadt@ and tedu@and build assistance from todd@ and otto@
rename define to reflect current operating system, as in sys/compatfrom tim van der molen
remove leftover NOLINT, WANTLINT, LINTFLAGS, LOBJ vars and lint targets.ok guenther@
First pass at removing clauses 3 and 4 from NetBSD licenses.Not sure what's more surprising: how long it took for NetBSD tocatch up to the rest of the BSDs (including UCB), or the amount ofcode t
First pass at removing clauses 3 and 4 from NetBSD licenses.Not sure what's more surprising: how long it took for NetBSD tocatch up to the rest of the BSDs (including UCB), or the amount ofcode that NetBSD has claimed for itself without attributing to theactual authors.OK deraadt@
simplify SNDCTL_DSP_SETTRIGGER- don't mess with the operational mode. that was primarily to be able toset record|play mode for full-duplex, which isn't needed any more.- don't set pause=1. thi
simplify SNDCTL_DSP_SETTRIGGER- don't mess with the operational mode. that was primarily to be able toset record|play mode for full-duplex, which isn't needed any more.- don't set pause=1. this ioctl isn't supposed to be used for stoppingstreams.suggestions, ok ratchov
this is the recording source. rename 'source' to 'recsource' and besure to only use 'record.source' instead of possibly 'inputs.source'.
implement SNDCTL_DSP_GETODELAYbump minor versionok deanna@
- when we need to do both AUDIO_SETINFO and AUDIO_GETINFO to emulate a single OSS ioctl, return the return value and errno from from AUDIO_SETINFO if there was an error, since it's more informati
- when we need to do both AUDIO_SETINFO and AUDIO_GETINFO to emulate a single OSS ioctl, return the return value and errno from from AUDIO_SETINFO if there was an error, since it's more informative than the return value and errno from AUDIO_GETINFO. also, don't bail if AUDIO_SETINFO fails, because OSS ioctls should return the current value of the parameter they are setting, even if there was an error.- avoid a possible (though highly unlikely) divide by zero in SNDCTL_DSP_GET[IO]SPACE.ok ratchov@
- make SNDCTL_DSP_GETOSPACE much more efficient by using AUDIO_GETPRINO instead of AUDIO_GETINFO- make SNDCTL_DSP_GETISPACE return correct values by using AUDIO_GETRRINFO instead of AUDIO_GETINF
- make SNDCTL_DSP_GETOSPACE much more efficient by using AUDIO_GETPRINO instead of AUDIO_GETINFO- make SNDCTL_DSP_GETISPACE return correct values by using AUDIO_GETRRINFO instead of AUDIO_GETINFO- remove calls to setblocksize() from SNDCTL_DSP_GET[IO]SPACE. changing the blocksize inside play or record loops, where these ioctls are most often used, can have serious negative consequences. the blocksize should be "fixed" to a power of 2 before these ioctls are called by using SNDCTL_DSP_SETFRAGMENT or SNDCTL_DSP_GETBLKSIZE.heavily tested by myself. no negative feedback from anyone else.ok ratchov
implement SNDCTL_DSP_[G|S]ETTRIGGERSNDCTL_DSP_SETTRIGGER is used to pause and unpause recording andplayback data transfers. SNDCTL_DSP_GETTRIGGER returns the pausedstates.this implementation o
implement SNDCTL_DSP_[G|S]ETTRIGGERSNDCTL_DSP_SETTRIGGER is used to pause and unpause recording andplayback data transfers. SNDCTL_DSP_GETTRIGGER returns the pausedstates.this implementation of SNDCTL_DSP_SETTRIGGER also sets the audio(4)mode (AUMODE_[PLAY|RECORD]), depending on which direction (play, recordor both) is to be triggered.this can be used allow OSS audio programs to work in full-duplexmode without changing the audio(4) layer itself. according toOSS docs, SNDCTL_DSP_SETTRIGGER is a fairly important ioctl, andshould be used "when even the first read() cannot block."tested to not break any ports currently using SNDCTL_DSP_SETTRIGGERwhich has been a no-op for quite some time.ok ratchov
convert to new .Dd format;
revert change that breaks KDE, until we figure out what's wrong.
Fix problem in ioctl() handling in OSS audio emulation which causedunintentional changes of the audio settings e.g. when running "kphone".Adapted to the userland library from a similar change in t
Fix problem in ioctl() handling in OSS audio emulation which causedunintentional changes of the audio settings e.g. when running "kphone".Adapted to the userland library from a similar change in the kernel code.ok jakemsr@
Use __BSD_VISIBLE instead of _POSIX_SOURCE to avoid pullingin most of machine/endian.h. OK espie@
use WANTLINT= (on all architectures)
compare st_dev/st_ino before declaring the cached values valid; ok miod
errno changes, lib major version bumps, and general flag dayTo build you must:cd /usr/src && make obj && make includescd lib/libc && make depend && make && NOMAN=1 sudo make installcd /usr/src &&
errno changes, lib major version bumps, and general flag dayTo build you must:cd /usr/src && make obj && make includescd lib/libc && make depend && make && NOMAN=1 sudo make installcd /usr/src && make build
12