summaryrefslogtreecommitdiff
path: root/usr.bin/sndiod
AgeCommit message (Collapse)Author
2015-10-02Replace %s in the format string, with its value (macro).Alexandre Ratchov
2015-10-02As the socket path is known, use its size rather that PATH_MAX.Alexandre Ratchov
2015-10-02use macros instead of hard-coded strings for unix sockets pathsAlexandre Ratchov
2015-09-05In the last commit, the man-page change was committed by mistake,Alexandre Ratchov
backit out.
2015-09-05typos in comments: xfree -> freeAlexandre Ratchov
2015-08-27backout previous for now, as it causes me portability problemsAlexandre Ratchov
2015-08-11Use INTIM instead of -1 as poll(2) time-out argument.Alexandre Ratchov
Suggested by deraadt.
2015-08-11Don't call poll(2) with few millisecond time-out argument when -1Alexandre Ratchov
could be used. Avoids syscalls when the daemon is not being used. Requested by deraadt.
2015-08-01Move processing of polled files in its own function, and call itAlexandre Ratchov
twice: once for files that need immediate handling, and once for files that would block. No behavior change.
2015-07-24Crank watchdog timeout from 2 to 4 seconds.Alexandre Ratchov
2015-07-24Log when device is disconnected.Alexandre Ratchov
2015-07-24Clear watchdog timer when device is closed, fixes use-after-free inAlexandre Ratchov
error code-paths when device is closed before audio is stopped.
2015-07-17Use an offsets in the array of pollfd structures instead of pointers. NoAlexandre Ratchov
behaviour change.
2015-07-17rename nfds to max_nfds, no object changeAlexandre Ratchov
2015-07-17Move non-debug varibles outside #ifdef DEBUG blockAlexandre Ratchov
2015-07-17Simplify debug info: log poll descriptors on a single line, recordAlexandre Ratchov
timestamps only when they are needed.
2015-07-17Stop using interval timers (not inherited by fork(2), obsolete inAlexandre Ratchov
newer posix releases), use the poll(2) timeout parameter instead. Fixes hangs during clean-up after the audio device is disconnected or an unrecoverable error is detected. Suggested by and discussed with millert@.
2015-04-26Fix typo in the buffer size value: 7680 in the manpage vs 7860 inDavid Coppa
the sndiod.c code. Initially, I thought the error was in the manpage, but Alexander told me it was the code, so fix the code instead. ok ratchov@
2015-02-16Check if slot is NULL, and if so, drop the connection. For now slotAlexandre Ratchov
is never NULL, but this is an accident.
2015-02-16add missing protos, fix spacingAlexandre Ratchov
2015-02-16Allow files to be skipped in the poll(2) event loop, in caseAlexandre Ratchov
there are events already available (for immediate processing)
2015-02-16Use signed integers as offset in the buffer (as aucat does) toAlexandre Ratchov
avoid other signed integer being accidently promoted to unsigned in future code.
2015-01-16Replace <sys/param.h> with <limits.h> and other less dirty headers whereTheo de Raadt
possible. Annotate <sys/param.h> lines with their current reasons. Switch to PATH_MAX, NGROUPS_MAX, HOST_NAME_MAX+1, LOGIN_NAME_MAX, etc. Change MIN() and MAX() to local definitions of MINIMUM() and MAXIMUM() where sensible to avoid pulling in the pollution. These are the files confirmed through binary verification. ok guenther, millert, doug (helped with the verification protocol)
2014-11-21Don't forget to transmit the xrun attribute in GETPAR messages. FoundAlexandre Ratchov
by stu@, thanks.
2014-10-12Don't assume that right-shift sign-extends integers.Alexandre Ratchov
2014-10-08check audio parameters returned by the audio drivers,Alexandre Ratchov
and nicely report driver bugs rather than crashing/misbehaving later if parameters aren't consistent.
2014-08-13Spelling - "alignment" not "alignement". ok ratchovNicholas Marriott
2014-06-02fix uninitialized sock->port variable, causing crashes in certainAlexandre Ratchov
error handling code paths (ex. wrong/unsupported mode).
2014-06-02log attach position only if log_level >= 0,Alexandre Ratchov
remove empty dev_mon_snoop() function
2014-03-17Drop dev_clear(), merge dev_full_cycle() and dev_empty_cycle()Alexandre Ratchov
into dev_cycle(). No behavior change.
2014-03-17fix wrong file status stringsAlexandre Ratchov
2014-03-17typo in debug printfAlexandre Ratchov
2014-03-17unbreak monitoring mode, which was shifted in time by 1 blockAlexandre Ratchov
2014-03-07remove unused "delta" argument from onmove callbacksAlexandre Ratchov
2014-03-07remove unused mmc start/stop/relocate call-backs as they don'tAlexandre Ratchov
make sense for clients and are handled through midi anyway
2014-03-05- properly set initial position: fixes incorrect position reportingAlexandre Ratchov
on busy machines configured to use tiny block sizes - run play and rec cycle in the same loop. No behavior change, but the code is much simpler this way.
2014-03-05remove unused "autostart" featureAlexandre Ratchov
2014-03-05remove (unused) square tone generatorAlexandre Ratchov
2014-03-05Check that socket is writable before attempting to write dataAlexandre Ratchov
packets.
2014-03-05remove unused varAlexandre Ratchov
2014-02-08copy the correct number of channels in join/expandAlexandre Ratchov
2014-02-08remove debug bits: dont fill with junk unused channelsAlexandre Ratchov
2014-02-08use the correct integer width in calls to AMSG_ISSET()Alexandre Ratchov
2013-12-31Drop blocks and instert silence immediately in the socket rx/tx codeAlexandre Ratchov
path rather than waiting for the next device cycle. This fixes deadocks when the slot uses the SIO_SYNC mode.
2013-12-31round client block size to nearest possbleAlexandre Ratchov
2013-12-20set the target device number of standard system exclusiveAlexandre Ratchov
messages to 0x7f (aka "any device").
2013-11-21use -Wmissing-prototypesAlexandre Ratchov
2013-11-19move -Wxxx flags from CFALGS to COPTSAlexandre Ratchov
suggested by deraadt
2013-11-18add missing prototypesAlexandre Ratchov
2013-09-28Fix condition to check if a midi port is referenced. Remove unused bits.Alexandre Ratchov