Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 27 Oct 2003 13:30:10 -0500
From:      Mathew Kanner <mat@cnd.mcgill.ca>
To:        "T.M. Sommers" <tms2@mail.ptd.net>
Cc:        freebsd-multimedia@freebsd.org
Subject:   Re: missing /dev/midi with CMI8738
Message-ID:  <20031027183010.GK31273@cnd.mcgill.ca>
In-Reply-To: <3F9CE878.7040903@mail.ptd.net>
References:  <3F8A7AC1.9090909@mail.ptd.net> <20031013160743.GN533@funkthat.com> <20031015211635.GF1810@cnd.mcgill.ca> <3F9CE878.7040903@mail.ptd.net>

next in thread | previous in thread | raw e-mail | index | archive | help

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20031027183010.GK31273>