Re: [LAU] How to get Midiman USB midisport 4x4 working?

From: Folderol <folderol@email-addr-hidden>
Date: Sat Oct 17 2009 - 00:45:56 EEST

On Fri, 16 Oct 2009 14:26:57 -0700 (PDT)
degras <danwgrace@email-addr-hidden> wrote:

>
> tux maudio # fxload -L
> /usr/local/share/usb/maudio/midisport-firmware-1.2/MidiSport4x4.ihx -D
> /proc/bus/usb/003/002
>
> OK, looks good so far, but then:
>
> tux maudio # modprobe snd-usb-audio
> FATAL: Module snd_usb_audio not found.
>
>
> Thanks.

For what it's worth this is the script I cobbled together for my 2x2.
It finds the USB port and the device number then does the firmware
load all by itself.

You will need to modify the 'fxload' line to suit your distro, as well
as changing the 2x2 to 4x4. The -D is all part of the same line (with a
space). Curses on auto word wrap!

It must be run by bash, not just sh

#!/bin/bash

# echo's can be removed -just for testing

name="Midisport"

lsusb | cat | while read line ; do
  if [[ "$line" =~ "$name" ]] ; then
    echo
    echo $line
    result=${line#'Bus '}
    busnumber=${result%' Device'*}
    result=${result#*'Device '}
    devicenumber=${result%': ID'*}
    echo $busnumber
    echo $devicenumber
    result="sudo fxload -I /usr/share/usb/maudio/MidiSport2x2.ihx
-D /dev/bus/usb/"$busnumber"/"$devicenumber exec $result
  fi
done
echo

-- 
Will J Godfrey
http://www.musically.me.uk
_______________________________________________
Linux-audio-user mailing list
Linux-audio-user@email-addr-hidden
http://lists.linuxaudio.org/mailman/listinfo/linux-audio-user
Received on Sat Oct 17 04:15:05 2009

This archive was generated by hypermail 2.1.8 : Sat Oct 17 2009 - 04:15:05 EEST