[EMAIL PROTECTED] wrote:
> The problem is that 'pmidi -p 64:0 midifile.mid' locks my machine (I have
> to reboot manually to make things work again); cat-ting some bytes to
> /dev/midi?? produces the same effect.

Please try applying the following patch, i.e. replace "input" with
"output" in line 1807 of alsa-kernel/pci/cs4281.c; and recompile.

Index: cs4281.c
===================================================================
RCS file: /cvsroot/alsa/alsa-kernel/pci/cs4281.c,v
retrieving revision 1.30
diff -u -8 -r1.30 cs4281.c
--- cs4281.c    11 Nov 2002 16:58:07 -0000      1.30
+++ cs4281.c    27 Nov 2002 08:12:36 -0000
@@ -1799,17 +1799,17 @@
 static int snd_cs4281_midi_output_open(snd_rawmidi_substream_t * substream)
 {
        unsigned long flags;
        cs4281_t *chip = snd_magic_cast(cs4281_t, substream->rmidi->private_data, 
return -ENXIO);

        spin_lock_irqsave(&chip->reg_lock, flags);
        chip->uartm |= CS4281_MODE_OUTPUT;
        chip->midcr |= BA0_MIDCR_TXE;
-       chip->midi_input = substream;
+       chip->midi_output = substream;
        if (!(chip->uartm & CS4281_MODE_INPUT)) {
                snd_cs4281_midi_reset(chip);
        } else {
                snd_cs4281_pokeBA0(chip, BA0_MIDCR, chip->midcr);
        }
        spin_unlock_irqrestore(&chip->reg_lock, flags);
        return 0;
 }


> I don't know exactly what that External MIDI interface is or should be. I
> thought that it should be an external midi connector: but there is none
> on my computer.

On many soundcards, the MIDI interface is connected to some pins of the
gameport. You would need an extra adapter if you wanted to connect MIDI
devices.


HTH
Clemens



-------------------------------------------------------
This SF.net email is sponsored by: Get the new Palm Tungsten T 
handheld. Power & Color in a compact size! 
http://ads.sourceforge.net/cgi-bin/redirect.pl?palm0002en
_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to