missing /dev/midi with CMI8738

Mathew Kanner mat at cnd.mcgill.ca
Mon Oct 27 10:31:59 PST 2003

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

	I'm don't quite following what your problem is, but to double
check, I d/l'ed 

	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 at 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.


	Having your book made into a movie is like having your ox
	made into a bouillon cube.
			- Bill Neely

More information about the freebsd-multimedia mailing list