From nobody@FreeBSD.org  Tue Aug 10 10:47:01 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 3129A16A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Aug 2004 10:47:01 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id 258BE43D31
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Aug 2004 10:47:01 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id i7AAl0K9011842
	for <freebsd-gnats-submit@FreeBSD.org>; Tue, 10 Aug 2004 10:47:00 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id i7AAl0gf011840;
	Tue, 10 Aug 2004 10:47:00 GMT
	(envelope-from nobody)
Message-Id: <200408101047.i7AAl0gf011840@www.freebsd.org>
Date: Tue, 10 Aug 2004 10:47:00 GMT
From: Siegbert Baude <siegbert.baude@gmx.de>
To: freebsd-gnats-submit@FreeBSD.org
Subject: kernel compile fails with snd_sb16
X-Send-Pr-Version: www-2.3

>Number:         70250
>Category:       kern
>Synopsis:       kernel compile fails with snd_sb16
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Aug 10 10:50:24 GMT 2004
>Closed-Date:    Wed Aug 11 09:38:24 GMT 2004
>Last-Modified:  Wed Aug 11 09:38:24 GMT 2004
>Originator:     Siegbert Baude
>Release:        FreeBSD 5.2-CURRENT i386
>Organization:
>Environment:
FreeBSD mycomputer 5.2-CURRENT FreeBSD 5.2-CURRENT #16: Wed Aug  4 18:07:19 CEST 2004     mycomputer:/usr/obj/usr/src/sys/MYCOMPUTER  i386

Creative AWE 64 Gold, Abit BX-133, PIII-850

>Description:
kernel compile fails with:

config: Error: device "snd_sb" is unknown
config: Error: device "snd_sb" does not take a count
config: 2 errors
*** Error code 1

I have in my kernel config:

device          sound
device          snd_sbc
device          snd_sb16
device          joy

Note, that the error message is "snd_sb" despite the "snd_sb16" in the kernel conf.

If there is only 
device          sound
device          snd_sbc
device          joy
in the kernel config, the compile succeeds and dmesg gives:
# dmesg |grep sbc
sbc0: <Creative SB AWE64 Gold> at port 0x388-0x38b,0x330-0x331,0x220-0x22f irq 5 drq 5,1 on isa0
sbc0: [GIANT-LOCKED]

but there are no sound devices in /dev and /dev/sndstat gives only: 
# cat /dev/sndstat
FreeBSD Audio Driver (newpcm)
Installed devices:

With this kernel, loading the module snd_sb16 works in part: the sound devices in /dev appear (which is the reason I tried to compile snd_sb16 into the kernel), but sound nevertheless fails (the AWE64 might not be really SB16 compatible; snd_sbc and pcm only were sufficient before the pcm->sound change).

So before the change to "device sound" I simply had 
device pcm
device sbc
in my kernel config and everything worked like expected. The hardware itself is o.k., Linux and Win still produce sound.


>How-To-Repeat:
cvsup to the latest CURRENT sources, put "device snd_sb16" into your kernel conf, "cd /usr/src && make buildworld &&make kernel"   
>Fix:
      
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: stefanf 
State-Changed-When: Wed Aug 11 09:35:22 GMT 2004 
State-Changed-Why:  
As described in src/sys/conf/NOTES, snd_sb16 must be enclosed in quotes, so  
your snd_sb16 line should read 
device "snd_sb16" 

http://www.freebsd.org/cgi/query-pr.cgi?pr=70250 
>Unformatted:
