develooper Front page | perl.midi | Postings from December 2006

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

Thread Previous | Thread Next
From:
Rick Bolen
Date:
December 14, 2006 05:47
Subject:
RE: accessing midisport 2x2 using ALSA & MIDI::Music...
Message ID:
CDEKLJBDJHAEEAKNLEDAAENCCPAA.rbolen@carolina.rr.com

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 $!;


Thread Previous | Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About