From alsa-devel-owner@alsa.jcu.cz  Wed Jan 13 20:52:03 1999
Received: from cheetah.it.wsu.edu (mwoods@cheetah.it.wsu.edu [134.121.1.8])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id UAA25571
	for <alsa-devel@alsa.jcu.cz>; Wed, 13 Jan 1999 20:51:01 +0100
Received: from localhost (mwoods@localhost)
	by cheetah.it.wsu.edu (8.8.7/8.8.7) with SMTP id LAA06448
	for <alsa-devel@alsa.jcu.cz>; Wed, 13 Jan 1999 11:50:59 -0800 (PST)
Date: Wed, 13 Jan 1999 11:50:59 -0800 (PST)
From: Mike Woods <mwoods@mail.wsu.edu>
To: alsa-devel@alsa.jcu.cz
Subject: Re: Ultrasound Midi.
In-Reply-To: <199901130050.AAA05638@ariel.sr.home>
Message-ID: <Pine.OSF.3.95.990113114708.28178A-100000@cheetah.it.wsu.edu>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Reply-To: alsa-devel@alsa.jcu.cz
Sender: alsa-devel-owner@alsa.jcu.cz
Precedence: list



On Wed, 13 Jan 1999, Steve Ratcliffe wrote:

> > problems with it, except for the midi. I know it is still under
> > development, but whenever I try raw midi, or the sequencer, my whole
> > system locks up. I have an Gravis Ultrasound PnP Pro card. I have recently
> > ran the test programs included in the alsa-lib. The decoder bit worked,
> > but the sender locked everything. Any ideas of what might be going wrong?
> 
> Is that straight away, or after a while?
> 
> This is what happens for me:
> 
> First I applied the appended patch so that reads return as soon as there
> is some data.
> 
> The decoder works fine, and I get an event printed every time that I
> hit a key on my keyboard.
> 
> Sender works at first and I get the ECHO event printed every second until
> about 200 seconds after alsa was loaded, when the whole system locks up
> completely.  However this only happens when my midi keyboard is switched on,
> it does not appear to lock up when it is switched off.
> 
> It could be that the active sensing signals are piling up somewhere and
> causing a problem when some limit is reached.
> 
> ..Steve
> 
> In directory alsa-driver/kernel/seq:
> 
> --- seq_clientmgr.c.orig	Sun Jan 10 00:07:33 1999
> +++ seq_clientmgr.c	Sun Jan 10 00:07:51 1999
> @@ -355,7 +355,7 @@
>  	while (count >= sizeof(snd_seq_event_t)) {
>  		while (snd_seq_fifo_avail(client->outqueue) == 0) {
>  			/* no data available in outqueue, block */
> -			if (file->f_flags & O_NONBLOCK)
> +			if (file->f_flags & O_NONBLOCK || result > 0)
>  				return result;
>  			snd_spin_lock(&client->data.user, input_sleep, &flags);
>  			client->outqueue->flags |= SND_WK_SLEEP;
> ------
> To unsubscribe from <alsa-devel@alsa.jcu.cz> mailing list send message
> 'unsubscribe' in the body of message to <alsa-devel-request@alsa.jcu.cz>.
> 
I updated my cvs tree and applied your patch. I don't have any keyboard
connected to my midi port. The instant I send anything to the midi device,
everything locks up. I did not find any information from the driver at all
after this happens.


