Re: MIDI support broken in 2.1.78 && 2.1.86

Frank van de Pol (F.K.W.van.de.Pol@inter.nl.net)
Tue, 24 Feb 1998 19:53:20 +0100 (MET)


Peter-Paul Witta wrote:
>
> hi!
> i'm no kernel hacker, but i do use a Roland SCD-15 Midi device on the
> internal midi connector my sb16 has.
>
> i do compile the sb16 into the kernel - and cat /dev/sndstat reveals a
> midi device on port 0x330. fine.
>
> the device /dev/sequencer2 is there, there is a driver present, but any
> midi apps blocks or segfaults when it tries to play some music...
>
>
>
> kind regards, http://stud2.tuwien.ac.at/~e9525748/
> Peter-Paul Witta mailto:e9525748@student.tuwien.ac.at FIDO 2:310/22.264
> "Linux can emulate an C64 on my AMDK6PR200 at full speed. Windows can't."
>

There is a bug in the sound timer that is called by the level 2 sequencer
before it is initialised. Here's a small patch to work around that problem.
Might also work for you. Let me know the outcome.

Regards,
Frank.

--- drivers/sound/sound_timer.c.2.1.84 Thu Jan 22 23:03:23 1998
+++ drivers/sound/sound_timer.c Mon Feb 2 22:23:15 1998
@@ -50,6 +50,10 @@
{
unsigned long usecs_per_tick;

+ /* bail out if this timer is not yet initialised */
+ if (tmr==NULL)
+ return;
+
usecs_per_tick = (60 * 1000000) / (curr_tempo * curr_timebase);

/*

========================---------------->
#define NAME "Frank van de Pol"
#define ADDRESS "mgr. Nelislaan 10"
#define CITY "4741 AB Hoeven"
#define COUNTRY "The Netherlands"
#define EMAIL "F.K.W.van.de.Pol@inter.NL.net -o)
/\\
Linux - Why use Windows, since there is a door? _\_v

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu