Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 6 Mar 2004 11:00:49 -0500
From:      Mathew Kanner <mat@cnd.mcgill.ca>
To:        Daniel Lang <langd-freebsd-hackers@leo.org>
Cc:        hackers@freebsd.org
Subject:   Re: Standard sbc and pcm support in GENERIC kernel?
Message-ID:  <20040306160049.GH35653@cnd.mcgill.ca>
In-Reply-To: <20040305184424.GA10310@atrbg11.informatik.tu-muenchen.de>
References:  <20040303160340.700C5170D4@www.wcborstel.nl> <20040304205210.GJ490@geekpunk.net> <Pine.BSF.4.50L0.0403050810510.14092-100000@fryit.atlasta.net> <20040305184424.GA10310@atrbg11.informatik.tu-muenchen.de>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mar 05, Daniel Lang wrote:
> Hi,
> 
> David Raistrick wrote on Fri, Mar 05, 2004 at 08:27:56AM -0800:
> [..]
> > kldload snd_driver
> > 
> > is of course the correct way to do it.  FWIW, kldunload snd_driver does
> > /not/ unload all of the modules that kldload snd_driver loads.
> [..]
> 
> snd_driver is a module that contains _all_ drivers,
> thus you have the best chance to get sound working.
> Unloading it, will of course unload the whole module with
> all drivers. There is no way to leave one of the drivers
> in the kernel.
> 
> I agree, that there is not much documentation which driver
> module supports which sound device (or I was not successful 
> to dig that up).
> 
> However, you can determine the correct module, by subsequently
> loading and unloading each individual driver module. The one
> which attached to your sound device and actually works
> (check /dev/sndstat as well) is obviously the correct one.
> 
> Not a very efficient way, but it works. :)

	David and Daniel,
	First let me say that on my 5.x machine, kldunload snd_driver
does unload all the modules (and detaches the drivers when
applicable).
	In regards to how hard it is to know which module provides the
driver, I've just added to -current the following, 

mat@tube$ cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <CMedia CMI8738> at io 0xb800 irq 11 kld snd_cmi (1p/1r/0v channels duplex default)
pcm1: <Creative EMU10K1> at io 0xb400 irq 5 kld snd_emu10k1 (4p/2r/0v channels duplex)

	So the installation procedure is, as root.

	kldload snd_driver
	for each kld xxx in the output 
		echo "xxx_load=\"YES\"" >> /boot/loader.conf

	Does this seem reasonable?

	--Mat


-- 
	In general, a standard is very useful, whether it's de facto
	or du jour.
	- Microsoft's Greg Sullivan
	as misquoted by News.Com



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