Home  |  Linux  | Mysql  | PHP  | XML
From:Rick Bolen Date:Thu Dec 14 06:44:13 2006
Subject:RE: accessing midisport 2x2 using ALSA & MIDI::Music...
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 $!;

Navigate in group perl.midi at sever nntp.perl.org
Previous Next




  
© No Copyright
You are free to use Anything
Site Maintained by PHP Developer
Powered By PHP Consultants