For what it's worth, I've isolated the problem a bit more, and wonder if I'm
looking at a bug in the snd-serial-u16550 driver.
1) It only affects the snd-serial-u16550 driver...I tried a USB midi device,
and aseqdump works fine.
2) It is the snd_seq_connect_to() call within aplaymidi that works the magic
on the already running aseqdump. Comment out the call, and aplaymidi has no
effect on aseqdump. Put it back in, even wth the playfile() and
create_queue() functions commented out, and aseqdump works (while aplaymidi
is running).
3) The incoming data to aseqdump() is being queued somewhere, but somehow
aseqdump doesn't know it. That is, with aseqdump running, if I send a 'note
on' to the input port, I see nothing, but if I then run aplaymidi, then
aseqdump shows the 'note on' I sent several seconds before.
John
From: "r10 kindsofpeople" <r10kindsofpeople@xxxxxxxxxxx>
To: alsa-user@xxxxxxxxxxxxxxxxxxxxx
Subject: MIDI input/output interaction w/snd-serial-u16550
Date: Wed, 04 Apr 2007 15:52:20 -0500
I'm seeing a strange interaction within ALSA that I assume is due to
improper configuration on my part.
I'm using alsa 1.0.14rc1 under Fedora Core 6 with the snd-serial-u16550
driver, adaptor 4 (generic).
MIDI playback works fine with programs like aplaymidi.
Incoming MIDI data doesn't seem to get noticed by Alsa UNLESS aplaymidi is
running on another stream.
That is, with a continuous stream of data going to port 20:0, in one
terminal:
aseqdump -p 20:0
(no output)
then, in another terminal:
aplaymidi -p 20:1 01.MID
at which point, aseqdump starts showing MIDI data from the original stream
(not 01.MID) until aplaymidi finishes, at which point output from aseqdump
stops.
This behavior is repeatable...I can start aplaymidi again, and aseqdump
output starts up again. I can stop the original stream while 01.MID is
playing, and aseqdump output stops until I restart the stream.
I've tried to eliminate problems past the DB9 connector (handshaking lines,
etc) and as far as I can tell, everything is working up to the serial port
of the PC.
Any ideas?
John
_________________________________________________________________
Can?t afford to quit your job? ? Earn your AS, BS, or MS degree online in 1
year.
http://www.classesusa.com/clickcount.cfm?id=866145&goto=http%3A%2F%2Fwww.classesusa.com%2Ffeaturedschools%2Fonlinedegreesmp%2Fform-dyn1.html%3Fsplovr%3D866143
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user
_________________________________________________________________
Exercise your brain! Try Flexicon.
http://games.msn.com/en/flexicon/default.htm?icid=flexicon_hmemailtaglineapril07
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys-and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Alsa-user mailing list
Alsa-user@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/alsa-user