From nobody  Thu Jan 22 02:11:31 1998
Received: (from nobody@localhost)
          by hub.freebsd.org (8.8.8/8.8.8) id CAA01202;
          Thu, 22 Jan 1998 02:11:31 -0800 (PST)
          (envelope-from nobody)
Message-Id: <199801221011.CAA01202@hub.freebsd.org>
Date: Thu, 22 Jan 1998 02:11:31 -0800 (PST)
From: iwaki@jaist.ac.jp
To: freebsd-gnats-submit@freebsd.org
Subject: Inconsistency between LINT and sound_config.h
X-Send-Pr-Version: www-1.0

>Number:         5542
>Category:       misc
>Synopsis:       Inconsistency between LINT and sound_config.h
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 22 02:20:01 PST 1998
>Closed-Date:    Tue Feb 3 12:23:37 PST 1998
>Last-Modified:  Tue Feb  3 12:23:57 PST 1998
>Originator:     Mamoru IWAKI
>Release:        2.2.5-STABLE
>Organization:
Japan Advanced Institute of Science and Technology
>Environment:
FreeBSD ais-gw2k 2.2.5-STABLE FreeBSD 2.2.5-STABLE #0: 
Tue Jan 20 20:46:00 JST 1998     
root@ais-gw2k:/usr/src/sys/compile/i686-128M-PnP  i386
>Description:
LINT and i386/isa/sound/sound_config.h contradict with each 
other.  I think it is very confusing.  In concrete, LINT has 
the following lines to set the drq of sbxvi0 and the port of 
sbmidi0:

device sbxvi0   at isa? drq 5
device sbmidi0  at isa? port 0x330

However, the same things are described in a different way in 
sound_config,h as follows: 

#ifndef SB16_DMA
#ifdef PC98
#define SB16_DMA        3
#else
#define SB16_DMA        6
#endif
#endif

#ifndef SB16MIDI_BASE
#ifdef PC98
#define SB16MIDI_BASE   0x80d2
#else
#define SB16MIDI_BASE   0x300
#endif
#endif

especially non-PC98 machines, i.e. PC-AT compatibles.  

>How-To-Repeat:
You can find them in the source tree at least before Jan 20, 1998.
>Fix:
If LINT should be estimable, I think the following changes 
will be better:

*** sound_config.h      Sun Dec 28 09:30:53 1997
--- sound_config.h.new        Mon Jan  5 00:47:21 1998
***************
*** 106,112 ****
  #ifdef PC98
  #define SB16_DMA      3
  #else
! #define SB16_DMA      6
  #endif
  #endif
  
--- 106,112 ----
  #ifdef PC98
  #define SB16_DMA      3
  #else
! #define SB16_DMA      5
  #endif
  #endif
  
***************
*** 114,120 ****
  #ifdef PC98
  #define SB16MIDI_BASE 0x80d2
  #else
! #define SB16MIDI_BASE 0x300
  #endif
  #endif
  
--- 114,120 ----
  #ifdef PC98
  #define SB16MIDI_BASE 0x80d2
  #else
! #define SB16MIDI_BASE 0x330
  #endif
  #endif
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: pst 
State-Changed-When: Tue Feb 3 12:23:37 PST 1998 
State-Changed-Why:  
Fixed. 
>Unformatted:
