Bug #2252
open
snd_hda not useable if loaded via /boot/loader.conf
Added by xbit almost 13 years ago.
Updated almost 13 years ago.
Description
When loading snd_hda from /boot/loader.conf it is loaded, but cannot be used and configured. At least audio/moc does not work, it is unable to use the OSS interface. But after unloading and loading snd_hda again the sound card is useable.
As a workaround I added "/sbin/kldload snd_hda" to /etc/rc.local and then the soundcard is useable form audio/moc as OSS device.
snd_hda was the only sound kernel module that has been loaded via /boot/loader.conf.
Kernel configuration is GENERIC x86_64 (v2.12.0.23.gec4cf).
I think is related to #2253.
Have you tried also adding sound.ko to the loader.conf? In addition to
snd_hda, that is.
Alex Hornung wrote:
Have you tried also adding sound.ko to the loader.conf?
Yes. That was the first configuration. Then I tried without sound.ko.
Later this day I will revert my configuration and will add the error message from audio/moc and dmesg when loading via loader.conf.
When loading snd_hda.ko via /etc/rc.local, sound.ko is loaded automatically as dependency.
The dmesg audio parts if snd_hda.ko is loaded via /boot/loader.conf.
pcm0: <ATI (Unknown) High Definition Audio Controller> mem 0xfe9e8000-0xfe9ebfff irq 19 at device 5.1 on pci1
pcm1: <ATI SB600 High Definition Audio Controller> mem 0xfe7f0000-0xfe7f3fff irq 16 at device 20.2 on pci0
pcm0: <HDA Codec: Unknown Codec>
pcm0: <HDA Driver Revision: 20071129_0050>
pcm1: <HDA Codec: Realtek (Unknown)>
pcm1: <HDA Driver Revision: 20071129_0050>
dmesg parts after running kldunload/kldload.
pcm0: detached
pcm1: detached
pcm0: <ATI SB600 High Definition Audio Controller> mem 0xfe7f0000-0xfe7f3fff irq 16 at device 20.2 on pci0
pcm0: <HDA Codec: Realtek (Unknown)>
pcm0: <HDA Driver Revision: 20071129_0050>
pcm1: <ATI (Unknown) High Definition Audio Controller> mem 0xfe9e8000-0xfe9ebfff irq 19 at device 5.1 on pci1
pcm1: <HDA Codec: Unknown Codec>
pcm1: <HDA Driver Revision: 20071129_0050>
Nonetheless sound.ko and snd_hda.ko is loaded.
Also available in: Atom
PDF