New USB MIDI driver for FreeBSD

Hans Petter Selasky hselasky at c2i.net
Thu Sep 21 00:40:45 PDT 2006


On Thursday 21 September 2006 08:47, Torfinn Ingolfsen wrote:
> On Sun, 27 Aug 2006 17:19:22 +0200
>
> Hans Petter Selasky <hselasky at c2i.net> wrote:
> > The "umidi20" library will seemlessly handle device attach/detach.
> > For example one can unplug the MIDI device during playback, then plug
> > it in, and everything works again. No need to restart anything. Just
> > make sure that you "chmod 777 /dev/umidi*" or something similar.
>
> I finally (with lots of help from you - thanks!) got the new usb stack
> installed. And this includes the USB MIDI driver, I guess.
>
> I also installed the libumidi20 and QT4 / midistudio.
>
> I couldn't find a '*umidi*' module in /boot/kernel, or anywhere else
> for that matter. So I'll need a little help here.

You should load the "uaudio" module. If it was not installed, then:

cd /sys/modules/sound/uaudio
make all install
kldload uaudio

or if that does not work:

kldload snd_uaudio

Replug your devices.

>
> I have two usb midi devices, a keyboard and a sound / effects module the
> show up as: Sep 21 08:34:36 kg-quiet kernel: ugen0: <Evolution Electronics
> Ltd. USB MIDI keyboard, class 0/0, rev 1.00/2.52, addr 126> Sep 21 08:34:24
> kg-quiet kernel: ugen1: <Roland EDIROL SD-20, class 255/0, rev 1.10/1.00,
> addr 126>

Maybe you could run: "udesc_dump", the utility that is available 
from /usr/ports/sysutils/udesc_dump, before installing uaudio.

> usbdevs -v:
> root at kg-quiet# usbdevs -v
> Controller /dev/usb0:
> addr 126: full speed, power 500 mA, config 1, EDIROL SD-20(0x0027),
> Roland(0x0582), rev 1.00 addr 127: full speed, self powered, config 1, OHCI
> root hub(0x0000), (0x1002)(0x0000), rev 1.00 port 1 powered
>  port 2 powered
>  port 3 addr 126: full speed, power 500 mA, config 1, EDIROL SD-20(0x0027),
> Roland(0x0582), rev 1.00 port 4 powered
> Controller /dev/usb1:
> addr 126: full speed, self powered, config 1, USB MIDI keyboard(0x00d2),
> Evolution Electronics Ltd.(0x0a4d), rev 2.52 addr 127: full speed, self
> powered, config 1, OHCI root hub(0x0000), (0x1002)(0x0000), rev 1.00 port 1
> powered
>  port 2 powered
>  port 3 addr 126: full speed, self powered, config 1, USB MIDI
> keyboard(0x00d2), Evolution Electronics Ltd.(0x0a4d), rev 2.52 port 4
> powered
> Controller /dev/usb2:
> addr 127: high speed, self powered, config 1, EHCI root hub(0x0000),
> (0x1002)(0x0000), rev 1.00 port 1 powered
>  port 2 powered
>  port 3 powered
>  port 4 powered
>  port 5 powered
>  port 6 powered
>  port 7 powered
>  port 8 powered
>
> and there are no /dev/umidi* to bee seen.
> Should the /dev/umidi* be created when these devices are attached? Or do I
> need to kldload a module first?
>
> I have tried to start midistudio, both as my normal user and root, but it
> doesn't seem to create /dev/umidi* either. I am running
> tingo at kg-quiet$ uname -a
> FreeBSD kg-quiet.kg4.no 6.1-STABLE FreeBSD 6.1-STABLE #9: Wed Sep 20
> 22:59:59 CEST 2006     root at kg-quiet.kg4.no:/usr/obj/usr/src/sys/QUIET 
> amd64

/dev/umidi* should be created by the uaudio module, when you plug the devices. 
Just don't forget to "chmod 777 /dev/umidi*" or "chown xxx:xxx /dev/umidi*" 
or something alike, so that midistudio can open those devices.

--HPS


More information about the freebsd-multimedia mailing list