From alsa-devel-owner@alsa.jcu.cz  Wed Oct 14 17:39:15 1998
Received: from cyphyn.219.org (nwhn-sh13-port36.snet.net [204.60.49.36])
	by marvin.jcu.cz (8.9.1a/8.9.1) with ESMTP id RAA17410
	for <alsa-devel@jcu.cz>; Wed, 14 Oct 1998 17:38:59 +0200
Received: from localhost (emng@localhost)
          by cyphyn.219.org (8.8.4/8.8.4) with SMTP
	  id LAA08094 for <alsa-devel@jcu.cz>; Wed, 14 Oct 1998 11:41:53 -0400
Date: Wed, 14 Oct 1998 11:41:53 -0400 (EDT)
From: Fred Floberg <emng@geocities.com>
To: alsa-devel@jcu.cz
Subject: ALSA Sequencer bug found. Tentative fix included.
In-Reply-To: <199810140455.AAA05988@cyphyn.219.org>
Message-ID: <Pine.LNX.3.95.981014105713.7869B-100000@cyphyn.219.org>
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


Hello All,

When attempting to insert the sequencer modules from 0.2.0-pre6 (same code
as found in -pre8, I think) insmod refused to load them with the error:

snd_seq_dispatch_single_event: undefined symbol (that's going from memory)

After searching through the sequencer code I was able to track down where
the error was coming from.

In ..../kernel/seq/seq_queue.c line 317, a call to
"snd_seq_dispatch_single_event(new_cell);" is being made. Since that
function is not in the list of exported symbols it generates the error.
Changing the line to "snd_seq_dispatch_event(new_cell);", which is
exported, and which calls snd_seq_dispatch_single_event() itself,
allows the modules to load and function.

Now I don't know if this was what Frank had intended, or if
snd_seq_dispatch_single_event() was supposed to be exported - I
had no luck in attempting to change seq_export.sym etc. to
include snd_seq_dispatch_single_event. I mainly wanted to call
attention to the problem.

Also, after getting the sequencer modules to load, I ran usertest2
and playmidi (from the test utils) with some SMF Type 0 files. It
sounds as though the tempo was slowed down to 1/4 or less of the
original speed with some files. Other files seemed to run at closer
to their real tempo but still not quite.

Reading from the MIDI port using usertest1 does not work at all.

I'm using a cheapo SB16 card, and a cheapo MIDI synth (Radio Shack
'Concertmate'). CPU is a K6-2 @300mhz. This combination works fine under
OSS/Lite.

Are these known problems, or is this a problem that is specific
to my set up?

I'd like to help with developement of the sequencer code if I can
but I am just starting to get familiar with it.

Thanks,

Fred



