atom feed41 messages in org.freebsd.freebsd-hackersStandard sbc and pcm support in GENER...
FromSent OnAttachments
Jorn ArgeloMar 4, 2004 5:10 am 
Randy PrattMar 4, 2004 5:11 am 
Robert WatsonMar 4, 2004 8:59 am 
Rahul SiddharthanMar 4, 2004 11:41 am 
Mathew KannerMar 4, 2004 12:05 pm 
Brandon D. ValentineMar 4, 2004 2:44 pm 
Dan LangilleMar 4, 2004 3:26 pm 
Helge OldachMar 5, 2004 12:36 am 
Daniel O'ConnorMar 5, 2004 1:09 am 
Jorn ArgeloMar 5, 2004 5:05 am 
Helge OldachMar 5, 2004 5:08 am 
Mathew KannerMar 5, 2004 6:16 am 
Daniel O'ConnorMar 5, 2004 6:40 am 
Dag-Erling SmørgravMar 5, 2004 6:56 am 
Helge OldachMar 5, 2004 8:33 am 
David RaistrickMar 5, 2004 8:37 am 
David RaistrickMar 5, 2004 8:38 am 
Mathew KannerMar 5, 2004 8:43 am 
David RaistrickMar 5, 2004 8:44 am 
Helge OldachMar 5, 2004 8:58 am 
Daniel LangMar 5, 2004 10:44 am 
Brandon D. ValentineMar 5, 2004 10:51 am 
Mathew KannerMar 5, 2004 10:56 am 
John BaldwinMar 5, 2004 2:28 pm 
Avleen VigMar 5, 2004 6:55 pm 
Dan LangilleMar 5, 2004 6:58 pm 
Dan LangilleMar 5, 2004 7:02 pm 
Avleen VigMar 5, 2004 7:02 pm 
Jamie BowdenMar 5, 2004 9:26 pm 
Tijl CoosemansMar 6, 2004 4:54 am 
Kevin ObermanMar 6, 2004 4:54 am 
Randy PrattMar 6, 2004 4:54 am 
Dag-Erling SmørgravMar 6, 2004 6:05 am 
Dag-Erling SmørgravMar 6, 2004 6:06 am 
Dag-Erling SmørgravMar 6, 2004 6:07 am 
Mathew KannerMar 6, 2004 7:58 am 
Helge OldachMar 6, 2004 12:12 pm 
NarviMar 7, 2004 11:57 am 
NarviMar 7, 2004 12:00 pm 
Helge OldachMar 8, 2004 12:47 am 
Daniel LangMar 8, 2004 4:59 am 
Subject:Standard sbc and pcm support in GENERIC kernel?
From:Mathew Kanner (ma@cnd.mcgill.ca)
Date:Mar 6, 2004 7:58:36 am
List:org.freebsd.freebsd-hackers

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