Solved disable device sound in kernel for ASUS Essence One MKII MUSES Edition

I try to build a FreeBSD Kernel and disable device sound. This is needed for my USB Sound: ASUS Essence One MKII MUSES Edition.

To bring this hardware to work I want to install the port: audio/oss
This port requires to disable the device sound in kernel. It works great with FreeBSD 10. Now I have a clean install with FreeBSD 11 and can't build the necessary kernel.

To build the kernel I used the following commands:


cd /usr/src/sys/amd64/conf
cp GENERIC TEST
vi TEST
config TEST
cd ../compile/TEST
make cleandepend && make depend
make; make install


the differences between the GENERIC and my config:
Code:
< device        sound            # Generic sound driver (required)
< device        snd_cmi            # CMedia CMI8338/CMI8738
< device        snd_csa            # Crystal Semiconductor CS461x/428x
< device        snd_emu10kx        # Creative SoundBlaster Live! and Audigy
< device        snd_es137x        # Ensoniq AudioPCI ES137x
< device        snd_hda            # Intel High Definition Audio
< device        snd_ich            # Intel, NVidia and other ICH AC'97 Audio
< device        snd_via8233        # VIA VT8233x Audio
---
> #device        sound            # Generic sound driver (required)
> #device        snd_cmi            # CMedia CMI8338/CMI8738
> #device        snd_csa            # Crystal Semiconductor CS461x/428x
> #device        snd_emu10kx        # Creative SoundBlaster Live! and Audigy
> #device        snd_es137x        # Ensoniq AudioPCI ES137x
> #device        snd_hda            # Intel High Definition Audio
> #device        snd_ich            # Intel, NVidia and other ICH AC'97 Audio
> #device        snd_via8233        # VIA VT8233x Audio

When I did make depend I get this output:

...
===> sound (obj)
===> sound/sound (obj)
/usr/src/sys/amd64/compile/TEST/modules/usr/src/sys/modules/sound/sound created for /usr/src/sys/modules/sound/sound
===> sound/driver (obj)
===> sound/driver/ad1816 (obj)
/usr/src/sys/amd64/compile/TEST/modules/usr/src/sys/modules/sound/driver/ad1816 created for /usr/src/sys/modules/sound/driver/ad1816
===> sound/driver/als4000 (obj)
...


After reboot into this new kernel dmesg shows me the following error:

osscore: Open Sound System conflicts with FreeBSD driver
osscore: Please remove sound(4) from kernel or unload it
module_register_init: MOD_LOAD (osscore, 0xffffffff831de400, 0) error 16


kldstat shows:

Id Refs Address Size Name
1 39 0xffffffff80200000 1eea5d0 kernel
2 1 0xffffffff820ec000 30ae98 zfs.ko
3 2 0xffffffff823f7000 adb8 opensolaris.ko
4 1 0xffffffff82402000 21bd0 geom_eli.ko
5 1 0xffffffff82424000 b3d8 aesni.ko
6 1 0xffffffff82621000 ab3ac nvidia-modeset.ko
7 1 0xffffffff826cd000 a79c2d nvidia.ko
8 1 0xffffffff83147000 29f6 uhid.ko
9 1 0xffffffff8314a000 10ac2 snd_uaudio.ko
10 2 0xffffffff8315b000 40345 sound.ko
11 1 0xffffffff8319c000 d644 if_rum.ko
12 1 0xffffffff831aa000 3705 ums.ko


My FreeBSD Version:

FreeBSD core8 11.0-RELEASE-p8 FreeBSD 11.0-RELEASE-p8


So I guess that my kernel did not entirely disable the sound device. What steps are necessary to completely remove the sound device from a FreeBSD 11 kernel?

Any help would be appreciated.
 
9 1 0xffffffff8314a000 10ac2 snd_uaudio.ko
10 2 0xffffffff8315b000 40345 sound.ko
It looks like devd(8) has autoloaded snd_uaudio(4) and the sound(4) kernel module along with it. You might need to edit /etc/devd/usb.conf and comment the entry matching your device (or all entries) that load it.

Alternatively, you can set WITHOUT_MODULES=sound in /etc/make.conf to exclude them from the build. A kernel module will normally still be build even if you disable a device in the kernel config.

This is needed for my USB Sound: ASUS Essence One MKII MUSES Edition.
Have you already reported this on https://bugs.freebsd.org ?
 
Hello tobik@,

thanks for your help. You where right. I had to disable the device in /etc/devd/usb.conf. After a reboot the snd_uaudio kernel module was not loaded.
Unfortunately that did not fix my problem. The osscore did not recognize my sound device. I belief that this works in FreeBSD 10. Maybe I made a mistake.

But after your to suggest I tried the snd_uaudio, and my sound device just works. Next time I will try that first.

At least I learned a lot about how to build a FreeBSD kernel.
 
Back
Top