Re: Building kernel with no sound

From: Ian Lepore <ian_at_freebsd.org>
Date: Mon, 15 Jan 2018 13:58:06 -0700
On Mon, 2018-01-15 at 19:14 +0100, Alexander Sieg wrote:
> Hey,
> i´m trying to build a custom kernel with no sound support build in.
> 
> This is my make.conf:
> MALLOC_PRODUCTION=true
> KERNCONF=MYKERNEL #GENERIC-NODEBUG
> DEVELOPER=yes
> 
> and this is my kernel configuration:
> include GENERIC-NODEBUG
> 
> ident   MYKERNEL
> 
> nodevice	sound 		# Generic sound driver (required)
> nodevice	snd_es137x	# Ensoniq AUdioPCI ES137x
> nodevice	snd_hda		# Intel High Definition Audio
> nodevice	snd_ich		# Intel, Nvidia and other ICH AC'97 audio
> nodevice	snd_uaudio	# USB Audio
> nodevice	snd_via8233	# VIA VT823x Audio
> 
> 
> The problem is when i try to compile it with "make buildkernel" the
> build process starts, but it stop with the error that it can´t find the
> header file "channel_if.h".
> 
> /usr/src/sys/dev/sound/pcm/channel.h:256:10: fatal error: 'channel_if.h' file not found
> #include "channel_if.h"
>          ^~~~~~~~~~~~~~
> 
> The intention behind the custom kernel is to try 'oss' form the
> ports tree.

I think your nodevice list isn't quite complete.  Grepping for snd_ in
i386 and amd64 GENERIC, I come up with this list:

 snd_cmi      # CMedia CMI8338/CMI8738
 snd_csa      # Crystal Semiconductor CS461x/428x
 snd_emu10kx  # Creative SoundBlaster Live! and Audigy
 snd_es137x   # Ensoniq AudioPCI ES137x
 snd_hda      # Intel High Definition Audio
 snd_ich      # Intel, NVidia and other ICH AC'97 Audio
 snd_via8233  # VIA VT8233x Audio

-- Ian
Received on Mon Jan 15 2018 - 19:59:22 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:41:14 UTC