Go to file
Jaroslav Kysela 244d345fda Takashi Iwai <iwai@ww.uni-erlangen.de>
Wed, 22 Dec 1999 15:51:37 +0100
Changes in alsa-driver:

1. SND_SEQ_DEST_DIRECT was removed.  For direct dispatching, specify
   the scheduling queue as SND_SEQ_QUEUE_DIRECT.
   Source compatibility is kept if alsa-lib functions are used to set
   or check direct mode.
   Tested: pmidi, playmidi1, aconnect, aseqview, OSS emulation

2. The error event can be bounced to the sender as an encapsulated
   event with SND_SEQ_EVENT_BOUNCE type.  If the orignal event is
   variable length (like SYSEX), the data body is added after the
   copied event data.  (To access to it, use
   snd_seq_event_bounce_ext_data() macro.)
   This feature is enabled only when the sender is opened with read
   flag and has a client-filter flag SND_SEQ_FILTER_BOUNCE, so that
   as default it is disabled.

3. Maximum size of VARIABLE length event is defined as 2048 bytes.
   Larger events will be refused.
   Note that this is not the size of VARUSR nor VARIPC event.

4. Return error code was revised.
   Possible errors for read():
        -ENXIO  invalid client or file open mode
        -ENOSPC FIFO overflow (the flag is cleared after this error report)
        -EINVAL no enough user-space buffer to write the whole event
        -EFAULT seg. fault during copy to user space
   Possible errors for write():
        -ENXIO  invalid client or file open mode
        -ENOMEM malloc failed
        -EFAULT seg. fault during copy from user space
        -EINVAL invalid event
        -EAGAIN no space in output pool
        -EINTR  interrupts while sleep
        -EMLINK too many hops

        others  depends on return value from driver event_input callback

Changes in alsa-lib:

5. Behavior of snd_seq_flush_output() was changed.
   It flushes data in output buffer as much as possible.  This has
   two advantages.  One is that most data can be sent at one call,
   and another is that the error in write() can be detected directly
   from this function.
   The demerit of this implementation is that in non-blocking mode, it
   tries twice write() even if write pool of sequencer is full, which
   is not actually error.  In this case, flush_output() always returns
   -EAGAIN error code.
   After an error is detected (except for -EAGAIN in non-blocking
   mode), you should remove the error event via
   snd_seq_extract_output() as below.  Otherwise, it'll remain in
   output buffer and cause the same error again.

6. Some functions were added:
   snd_seq_exract_output(seq, &event)
        This extracts the first event on *output* buffer.  This will
        be useful to know (and remove) the event which causes error in
        write().
   snd_seq_event_input_pending(seq, fetch)
        Retunrs the number of events on input buffer.
        If no events exist in input buffer, it fetches from sequencer
        (only when flag is true).
   snd_seq_event_input_selective(seq, &ev, type, blocking)
        Retrieve the event from input with the given event type.
        If blocking is true, it waits until the target event is
        received.  It'll be useful for checking bounced error or
        waiting for hand-shake results (eg. loading insruments).
1999-12-22 15:05:51 +00:00
doc Documentation placement changes.. 1999-12-02 12:31:35 +00:00
include Takashi Iwai <iwai@ww.uni-erlangen.de> 1999-12-22 15:05:51 +00:00
src Takashi Iwai <iwai@ww.uni-erlangen.de> 1999-12-22 15:05:51 +00:00
test Takashi Iwai <iwai@ww.uni-erlangen.de> 1999-12-15 18:34:12 +00:00
utils Lang additions.. 1999-08-06 13:56:45 +00:00
acconfig.h Switch to automake and libtool 1998-11-18 20:42:09 +00:00
acinclude.m4 Fixed small bug in subminor version parsing.. 1999-11-07 09:38:36 +00:00
ChangeLog * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
config.guess * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
config.sub * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
configure.in Merged pcm-v2 branch into main CVS tree. 1999-11-06 23:47:07 +00:00
COPYING Initial revision 1998-08-13 15:42:56 +00:00
cvscompile Removed -fomit-frame-pointer.. 1999-07-22 08:37:23 +00:00
INSTALL First version... 1998-12-30 17:11:25 +00:00
install-sh Initial revision 1998-08-13 15:42:56 +00:00
ltconfig * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
ltmain.sh * update to libtool 1.3.3 1999-07-22 12:18:42 +00:00
Makefile.am Added version.. 1999-08-23 08:10:49 +00:00
missing Switch to automake and libtool 1998-11-18 20:42:09 +00:00
mkinstalldirs Switch to automake and libtool 1998-11-18 20:42:09 +00:00