Intel sound chips kernel configuration problem

Scott Bennett bennett at cs.niu.edu
Tue Apr 26 23:54:55 PDT 2005


     When xmcd seemed to run okay, but failed to produce any sound, I hunted
around and tried a "kldload snd_driver.ko", which worked and produced the
following /dev/sndstat file:

FreeBSD Audio Driver (newpcm)
Installed devices:
pcm0: <Intel ICH5 (82801EB)> at io 0xf8fff800, 0xf8fff400 irq 17 bufsz 16384 kld snd_ich (1p/1r/0v channels duplex default)

So I tried a "kldunload driver" followed by a "kldload snd_ich.ko", which also
worked fine.  Not wanting to have to load this driver after every boot, I tried
adding

device		snd_ich

to my kernel configuration, which is the GENERIC kernel with a few additions.
(I actually configure using the SMP configuration, which includes the GENERIC,
because of the dual-cored CPU on this machine.)  config showed no errors, but
the "make depend" yielded

Script started on Wed Apr 27 01:40:44 2005
hellas# make depend
rm -f .olddep
if [ -f .depend ]; then mv .depend .olddep; fi
make _kernel-depend
if [ -f .olddep ]; then mv .olddep .depend; fi
rm -f .newdep
make -V CFILES -V SYSTEM_CFILES -V GEN_CFILES |  MKDEP_CPP="cc -E" CC="cc" xargs mkdep -a -f .newdep -O -pipe  -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes  -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual  -fformat-extensions -std=c99  -nostdinc -I-  -I. -I../../.. -I../../../contrib/dev/acpica -I../../../contrib/altq -I../../../contrib/ipfilter -I../../../contrib/pf -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000  -mno-align-long-strings -mpreferred-stack-boundary=2 -ffreestanding
In file included from ../../../dev/sound/pcm/sound.h:93,
                 from ../../../dev/sound/pci/ich.c:28:
../../../dev/sound/pcm/channel.h:69:24: channel_if.h: No such file or directory
In file included from ../../../dev/sound/pci/ich.c:29:
../../../dev/sound/pcm/ac97.h:90:21: ac97_if.h: No such file or directory
mkdep: compile failed
*** Error code 1

Stop in /usr/src/sys/i386/compile/SMP.
*** Error code 1

Stop in /usr/src/sys/i386/compile/SMP.
hellas# exit
exit

Script done on Wed Apr 27 01:41:14 2005

     Does this mean that there is currently incomplete support for compiling
this sound driver into the kernel?  If so, is there a way to automate loading
of the driver after each boot?
     Thanks in advance for any helpful answers.


                                  Scott Bennett, Comm. ASMELG, CFIAG
**********************************************************************
* Internet:       bennett at cs.niu.edu                              *
*--------------------------------------------------------------------*
* "A well regulated and disciplined militia, is at all times a good  *
* objection to the introduction of that bane of all free governments *
* -- a standing army."                                               *
*    -- Gov. John Hancock, New York Journal, 28 January 1790         *
**********************************************************************


More information about the freebsd-mobile mailing list