From nobody@FreeBSD.org  Sun Jan 28 08:59:00 2001
Return-Path: <nobody@FreeBSD.org>
Received: from freefall.freebsd.org (freefall.FreeBSD.org [216.136.204.21])
	by hub.freebsd.org (Postfix) with ESMTP id A67DC37B400
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 28 Jan 2001 08:58:59 -0800 (PST)
Received: (from nobody@localhost)
	by freefall.freebsd.org (8.11.1/8.11.1) id f0SGwxC02937;
	Sun, 28 Jan 2001 08:58:59 -0800 (PST)
	(envelope-from nobody)
Message-Id: <200101281658.f0SGwxC02937@freefall.freebsd.org>
Date: Sun, 28 Jan 2001 08:58:59 -0800 (PST)
From: gwna@geocities.co.jp
To: freebsd-gnats-submit@FreeBSD.org
Subject: compile error while defines DEB(x)
X-Send-Pr-Version: www-1.0

>Number:         24696
>Category:       kern
>Synopsis:       compile error while defines DEB(x)
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    cg
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Jan 28 09:00:01 PST 2001
>Closed-Date:    Thu Jul 12 18:34:56 PDT 2001
>Last-Modified:  Thu Jul 12 18:36:12 PDT 2001
>Originator:     Hirokazu WATANABE
>Release:        FreeBSD 4.2-RELEASE
>Organization:
>Environment:
FreeBSD nike.private 4.2-RELEASE FreeBSD 4.2-RELEASE #27: Sun Jan 28 14:13:19 JST 2001     watanabe@nike@private:/usr/src/sys/compile/NIKE  i386
>Description:
Compile error occurs in sys/dev/sound/isa/{ess,sb}.c.
It uses struct "d", but no "d" is defined in that sources.
I think it must be "sc" and "sb".

>How-To-Repeat:
o Adds a sentence of "device pcm" into kernel configuration file.
o Adds "#define DEB(x) x" into sys/dev/sound/pcm/sound.h.
o Chdir compile/XXX, then make!

>Fix:
$FreeBSD: src/sys/dev/sound/isa/ess.c,v 1.3.2.2 2000/10/05 05:07:49 cg Exp
*** ess.c.org	Thu Oct  5 14:07:49 2000
--- ess.c	Mon Jan 29 01:36:40 2001
***************
*** 302,308 ****
      	ess_wr(sc, SBDSP_RST, 0);
      	if (ess_get_byte(sc) != 0xAA) {
          	DEB(printf("ess_reset_dsp 0x%lx failed\n",
! 			   rman_get_start(d->io_base)));
  		return ENXIO;	/* Sorry */
      	}
      	ess_cmd(sc, 0xc6);
--- 302,308 ----
      	ess_wr(sc, SBDSP_RST, 0);
      	if (ess_get_byte(sc) != 0xAA) {
          	DEB(printf("ess_reset_dsp 0x%lx failed\n",
! 			   rman_get_start(sc->io_base)));
  		return ENXIO;	/* Sorry */
      	}
      	ess_cmd(sc, 0xc6);


$FreeBSD: src/sys/dev/sound/isa/sb.c,v 1.50.2.3 2000/10/05 05:07:49 cg Exp
*** sb.c.org	Thu Oct  5 14:07:49 2000
--- sb.c	Mon Jan 29 01:37:20 2001
***************
*** 319,325 ****
      	sb_wr(sb, SBDSP_RST, 0);
      	if (sb_get_byte(sb) != 0xAA) {
          	DEB(printf("sb_reset_dsp 0x%lx failed\n",
! 			   rman_get_start(d->io_base)));
  		return ENXIO;	/* Sorry */
      	}
      	if (sb->bd_flags & BD_F_ESS)
--- 319,325 ----
      	sb_wr(sb, SBDSP_RST, 0);
      	if (sb_get_byte(sb) != 0xAA) {
          	DEB(printf("sb_reset_dsp 0x%lx failed\n",
! 			   rman_get_start(sb->io_base)));
  		return ENXIO;	/* Sorry */
      	}
      	if (sb->bd_flags & BD_F_ESS)


>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->cg 
Responsible-Changed-By: dd 
Responsible-Changed-When: Mon Jun 18 17:58:00 PDT 2001 
Responsible-Changed-Why:  
Over to sound guy. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24696 
State-Changed-From-To: open->closed 
State-Changed-By: greid 
State-Changed-When: Thu Jul 12 18:34:56 PDT 2001 
State-Changed-Why:  
The old sb driver is deceased. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=24696 
>Unformatted:
