From owner-freebsd-multimedia@FreeBSD.ORG Thu Sep 21 07:40:45 2006 Return-Path: X-Original-To: freebsd-multimedia@freebsd.org Delivered-To: freebsd-multimedia@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5C50A16A407 for ; Thu, 21 Sep 2006 07:40:45 +0000 (UTC) (envelope-from hselasky@c2i.net) Received: from swip.net (mailfe13.swip.net [212.247.155.129]) by mx1.FreeBSD.org (Postfix) with ESMTP id 8EB0443D55 for ; Thu, 21 Sep 2006 07:40:44 +0000 (GMT) (envelope-from hselasky@c2i.net) X-T2-Posting-ID: gvlK0tOCzrqh9CPROFOFPw== X-Cloudmark-Score: 0.000000 [] Received: from [193.216.86.206] (HELO [10.0.0.249]) by mailfe13.swip.net (CommuniGate Pro SMTP 5.0.8) with ESMTP id 115296644; Thu, 21 Sep 2006 09:40:42 +0200 From: Hans Petter Selasky To: freebsd-multimedia@freebsd.org Date: Thu, 21 Sep 2006 09:40:57 +0200 User-Agent: KMail/1.7 References: <200608271719.23435.hselasky@c2i.net> <20060921084709.cdfc30cc.torfinn.ingolfsen@broadpark.no> In-Reply-To: <20060921084709.cdfc30cc.torfinn.ingolfsen@broadpark.no> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Content-Disposition: inline Message-Id: <200609210940.59425.hselasky@c2i.net> Cc: Subject: Re: New USB MIDI driver for FreeBSD X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 21 Sep 2006 07:40:45 -0000 On Thursday 21 September 2006 08:47, Torfinn Ingolfsen wrote: > On Sun, 27 Aug 2006 17:19:22 +0200 > > Hans Petter Selasky 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: Ltd. USB MIDI keyboard, class 0/0, rev 1.00/2.52, addr 126> Sep 21 08:34:24 > kg-quiet kernel: ugen1: 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@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@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@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