From owner-freebsd-multimedia@FreeBSD.ORG Mon Oct 27 10:31:59 2003 Return-Path: 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 9A6B016A4B3 for ; Mon, 27 Oct 2003 10:31:59 -0800 (PST) Received: from hak.cnd.mcgill.ca (hak.cnd.mcgill.ca [132.216.11.133]) by mx1.FreeBSD.org (Postfix) with ESMTP id DD6E043FDF for ; Mon, 27 Oct 2003 10:31:57 -0800 (PST) (envelope-from mat@hak.cnd.mcgill.ca) Received: from hak.cnd.mcgill.ca (localhost [127.0.0.1]) by hak.cnd.mcgill.ca (8.12.9/8.12.8) with ESMTP id h9RIUAk4099422; Mon, 27 Oct 2003 13:30:10 -0500 (EST) (envelope-from mat@hak.cnd.mcgill.ca) Received: (from mat@localhost) by hak.cnd.mcgill.ca (8.12.9/8.12.8/Submit) id h9RIUASE099421; Mon, 27 Oct 2003 13:30:10 -0500 (EST) Date: Mon, 27 Oct 2003 13:30:10 -0500 From: Mathew Kanner To: "T.M. Sommers" Message-ID: <20031027183010.GK31273@cnd.mcgill.ca> References: <3F8A7AC1.9090909@mail.ptd.net> <20031013160743.GN533@funkthat.com> <20031015211635.GF1810@cnd.mcgill.ca> <3F9CE878.7040903@mail.ptd.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <3F9CE878.7040903@mail.ptd.net> User-Agent: Mutt/1.4.1i Organization: I speak for myself, operating in Montreal, CANADA X-Spam-Status: No, hits=-5.0 required=5.0 tests=EMAIL_ATTRIBUTION,IN_REP_TO,QUOTED_EMAIL_TEXT,REFERENCES, REPLY_WITH_QUOTES,USER_AGENT_MUTT version=2.55 X-Spam-Checker-Version: SpamAssassin 2.55 (1.174.2.19-2003-05-19-exp) cc: freebsd-multimedia@freebsd.org Subject: Re: missing /dev/midi with CMI8738 X-BeenThere: freebsd-multimedia@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Multimedia discussions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 27 Oct 2003 18:31:59 -0000 On Oct 27, T.M. Sommers wrote: > Mathew Kanner wrote: > [snip] > > The stock midi drivers has nothing for cmi. I've posted links > >to my driver which does support cmi. > > Thanks. I did not find it myself because I was searching for CMI8738, > not cmi. > > Unfortunately, when I try to load it, it fails: > > -> kldload snd_cmi > kldload: can't load snd_cmi: File exists > > which seems odd. kldload(2) is returning -1. > > kldunload does not work, either: > > -> kldunload snd_cmi > kldunload: can't find file snd_cmi: No such file or directory Hi, I'm don't quite following what your problem is, but to double check, I d/l'ed http://www.cnd.mcgill.ca/~mat/midi2-jun1303.tgz untar'ed it, cd into midi2/mod make && make install cd ../cmi cp /usr/src/sys/dev/sound/pci/cmi.c . patch < cmi.c.patch (On mine, one chunk failed because I have patched to fix a LOR) make && make install kldunload snd_cmi kldload midi kldload snd_cmi I'm using: tube# uname -a FreeBSD tube.mine.nu 5.1-CURRENT-20031021-JPSNAP FreeBSD 5.1-CURRENT-20031021-JPSNAP #0: Tue Oct 21 01:07:08 GMT 2003 root@ushi.jp.freebsd.org:/usr/obj/usr/src/sys/GENERIC i386 I then used midiplay in midi2/midiplay (stolen from netbsd!). Works fine. It's a little chunky because the HZ=100, it should really be HZ=1000, and invariants I think contributes to the sluggishness. --mat -- Having your book made into a movie is like having your ox made into a bouillon cube. - Bill Neely