Commit Graph

39 Commits

Author SHA1 Message Date
Alexandre Ratchov 99cfc04004 fit code in 80 columns, remove traing spaces 2016-01-08 21:51:12 +01:00
Alexandre Ratchov 7530bbf6d2 Pass full device name to audio/midi backends. 2015-12-09 11:13:11 +01:00
Alexandre Ratchov debf3b302c stop using param.h, from deraadt@ 2015-01-18 00:09:04 +01:00
Alexandre Ratchov b20e28a66e merge from openbsd: typos, use of O_CLOEXEC, _sndio_debug fix 2014-08-19 16:05:29 +02:00
Alexandre Ratchov d06df743db Refresh current position before reading/writing data, to keep the
current position always consistent with read & write pointers.
2014-02-21 10:58:43 +01:00
Alexandre Ratchov d02745522d backout latest 2014-02-15 21:56:05 +01:00
Alexandre Ratchov 6cbde939dd ensure that rpos <= cpos <= wpos 2014-02-14 15:15:13 +01:00
Alexandre Ratchov 9fc928011a set rbpf/wbpf to 1 if not used to avoid SIGFPE 2014-02-13 15:10:56 +01:00
Alexandre Ratchov 7a9ad77510 use relative read/write positions for debug printfs 2014-02-13 13:04:02 +01:00
Alexandre Ratchov 496c443bca log errors only if SNDIO_DEBUG=1 2013-12-10 20:23:11 +01:00
Alexandre Ratchov b22be8340a log only errors if SNDIO_DEBUG=1 2013-12-10 20:14:48 +01:00
Alexandre Ratchov 686dd7065e cleanup namespace 2013-11-12 09:49:28 +01:00
Alexandre Ratchov 05834decf0 less traces 2013-05-14 11:42:32 +02:00
Alexandre Ratchov 8748c853c2 move wsil/rdrop code in sio.c 2013-04-12 16:14:53 +02:00
Alexandre Ratchov 92bec779c0 better debug traces 2013-04-04 16:07:14 +02:00
Alexandre Ratchov 2d63cee93c factor hw parameters setup 2012-11-13 15:08:28 +01:00
Alexandre Ratchov a26dd8e520 remove wrong comment about wrong code 2012-10-27 15:02:44 +02:00
Alexandre Ratchov ea0d66a62d add explicit flow control in the protocol and use it for both midi and audio 2012-10-24 12:45:13 +02:00
Alexandre Ratchov aecccdb36f use int for nfds 2012-10-06 12:25:25 +02:00
Alexandre Ratchov 8d3f1fbe70 poll the right number of descriptors 2012-10-05 17:07:18 +02:00
Alexandre Ratchov 16a36fa53e make "default" a valid device name 2012-05-23 21:26:54 +02:00
Alexandre Ratchov 7f08f4d1fd dont use the symlink 2012-05-10 11:08:05 +02:00
Alexandre Ratchov 1247c187a7 s/unsigned/unsigned int/g, requested by deraadt 2012-04-11 09:21:29 +02:00
Alexandre Ratchov 96f647d64d strncmp() can't be used to parse device type, add our own routine 2011-11-10 10:43:31 +01:00
Alexandre Ratchov d0bc800ea8 unbreak alsa 2011-11-03 13:23:17 +01:00
Alexandre Ratchov 1d71c4a2fa stop using and duplicating ISSEP() macro 2011-11-01 17:30:39 +01:00
Alexandre Ratchov 33d6a705fd factor device name parsing code 2011-11-01 16:56:37 +01:00
Alexandre Ratchov e4ef0dc8d9 switch to type@hostname,unit/num.opt device names 2011-11-01 13:02:13 +01:00
Alexandre Ratchov 6b44a56017 use "period event" for recording
allocate paramters on the stack in sio_alsa_setpar()
2011-05-07 19:56:25 +02:00
Alexandre Ratchov c7fa24cb75 handle the case nfds > 1 2011-05-06 20:04:34 +02:00
Alexandre Ratchov 8e25c4c95f include "bsd-compat.h" unconditionally 2011-05-06 14:11:18 +02:00
Alexandre Ratchov 6a44b85b6c verify prefix length 2011-05-06 12:17:33 +02:00
Alexandre Ratchov 32be87eead make the code shorter: use an array of backend structures and
iterate over it rather than inlining calls to sio_<backend>_open
2011-05-06 12:14:48 +02:00
Alexandre Ratchov 190f1913a1 drop support for lagacy device names 2011-05-04 09:14:43 +02:00
Alexandre Ratchov 7c836dac01 move default device handling in backend code 2011-05-03 22:07:30 +02:00
Alexandre Ratchov 11699e1db3 rename "hw" -> "alsa" 2011-05-03 21:50:54 +02:00
Alexandre Ratchov 313ba302a8 use common DPRINTF's for audio and midi code 2011-04-16 11:12:41 +02:00
Alexandre Ratchov c446e8d141 add sio_<backend>_nfds() method 2011-03-31 13:08:07 +02:00
Alexandre Ratchov 2873ad8ad2 fix stupid functions names and file names, no binary change 2011-03-31 11:52:54 +02:00