RE: accessing midisport 2x2 using ALSA & MIDI::Music...

[email protected] ("Rick Bolen") Thu, 14 Dec 2006 08:44:13 -0500
Newsgroups perl.midi
Message-ID <[email protected]>
This is the heart of my challenge. The midisport 2x2 usb midi interface
requires hotplug to upload firmware to it, which I am successfully doing.

When I attach the midisport, hotplug detects it and does its' job, however,
since I have a "partial-alsa" install, I don't think the system ever assigns
a /dev/<devicename> filename alias to the hardware. I suppose the device is
available to the system through IOCTLs or some type of low-level addressing,
but I don't know how to: 1) find it; 2) talk to it. If I knew my way around
lower-level linux hardware stuff, I could probably work around this and spit
bytes out to the device, but I haven't been able to find info on how to
accomplish this. Since installing alsa-base & alas-utils requires removing
linux-sound-base, which hangs during uninstall, I'm stuck.



> #!/usr/bin/perl
> use warnings;
> use strict;
> use diagnostics;
> use Fcntl;
> require 'sys/soundcard.ph';
>
> sysopen(SEQ_FH,'/dev/sequencer',O_WRONLY) or die $!;