[64studio-devel] Tascam US 122 sound interface

Andy Gay andyupipes at gmail.com
Fri Jan 26 11:56:57 UTC 2007


I have simplified the loading of the device by writing a couple of perl
scripts that utililize the following subroutine to read the info from lsusb:

----------------------------
#buffers to hold bus and device numbers
my $bus = '';
my $device = '';

#get the fluxuating device information
@lines = `lsusb`;

sub getnumbers
{
#locate the entry
foreach (@lines)
{
if (index($_,"Tascam US-122") > -1)
  {
#found it - extract bus and device numbers
   $bus = substr($_,4,3);
   $device = substr($_,15,3);

#echo report to terminal
   print "Bus: $bus\n";
   print "Device: $device\n";
   } #end if
} #end foreach
} #end sub getnumbers

----------------------

Using the subroutine, I have 2 scripts, soundup1 and soundup2, that automate
the fxload and usx2yloader calls.  This is good.

What I cannot do is invoke fxload and

`usx2yloader -u /proc/bus/usb/$bus/$device`;

in the same script.  I get

"No usx-2y-compatible cards found"

I tried running the lsusb parse again after fxload.  Nope.
I tried running separate perl scripts for fxload and usx2yloader from a bash
script: Nope.

To work, I have to enter both script commands manually from the terminal,

Something is going on I don't understand.  Does there have to be a delay
between the two calls?

I would like to reduce my soundup1 (fxload) script and soundup2
(usx2yloader) scripts to one, and have it autoload the Tascam US122, but
haven't quite gotten there yet.  Any suggestons?

Thanks.
Andy
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.64studio.com/pipermail/64studio-devel/attachments/20070126/cad9199d/attachment.htm 


More information about the 64studio-devel mailing list