On Wed, 12 Feb 2003, Ryan Pavlik wrote:

> On Wed, 12 Feb 2003 11:28:35 -0800
> Ryan Pavlik <[EMAIL PROTECTED]> wrote:
> 
> <snipped>
> 
> Further info:  The bug is definitely above the hardware level.  I added
> a printk to snd_mtpav_send_byte() for logging device/bytes sent, and
> came up with the attached log, which I commented on.  This log was
> generated by playing the two tracks as described in my previous message.
> 
> As you can see (a page or two down, look for '??'), the status byte
> for some midi messages is getting lost before it gets to
> snd_mtpav_send_byte(). I'm going to go through and see if this is due
> to complications elsewhere in mtpav.c, but I'm only about 50% sure
> that's where the problem is.

It seems that mtpav don't remeber the old status byte for each channels. 
If it's true, then we need to take care about the expansion in the mtpav 
driver, because the sequencer MIDI driver removes duplicated status bytes 
to opmitize throughput.

To test this behaviour, please, try this patch:

Index: seq_midi_event.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/core/seq/seq_midi_event.c,v
retrieving revision 1.10
diff -u -r1.10 seq_midi_event.c
--- seq_midi_event.c    31 Jan 2003 15:19:34 -0000      1.10
+++ seq_midi_event.c    12 Feb 2003 20:41:30 -0000
@@ -349,6 +349,8 @@
 {
        unsigned int cmd, type;

+       dev->nostat = 1;
+
        if (ev->type == SNDRV_SEQ_EVENT_NONE)
                return -ENOENT;



                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs



-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to