From nsayer@quack.kfu.com  Wed Sep 18 11:10:13 1996
Received: from quack.kfu.com (quack.kfu.com [204.147.226.1])
          by freefall.freebsd.org (8.7.5/8.7.3) with SMTP id LAA28556
          for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 1996 11:10:12 -0700 (PDT)
Received: from morpheus.kfu.com (morpheus.kfu.com [204.147.226.4]) by quack.kfu.com (8.6.12/8.6.12) with ESMTP id LAA11733 for <FreeBSD-gnats-submit@freebsd.org>; Wed, 18 Sep 1996 11:10:09 -0700
Received: by morpheus.kfu.com 
        (8.7.5//ident-1.0) id LAA00811; Wed, 18 Sep 1996 11:10:08 -0700 (PDT) 
Message-Id: <199609181810.LAA00811@morpheus.kfu.com>
Date: Wed, 18 Sep 1996 11:10:08 -0700 (PDT)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: mss driver extension to broaden support
X-Send-Pr-Version: 3.2

>Number:         1636
>Category:       kern
>Synopsis:       mss driver extension to broaden support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 11:20:02 PDT 1996
>Closed-Date:    Sun Mar 22 18:01:05 PST 1998
>Last-Modified:  Sun Mar 22 18:01:37 PST 1998
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-960801-SNAP i386
>Organization:
Just me
>Environment:

Some types of laptops (one example is the Zenith Z-NoteFlex),
2.2-980801-SNAP


>Description:

Some incarnations of the Microsoft Windows Sound System don't have
the registers that the mss driver is looking for from base+0 through
base+3. They simply hardwire an AD1848 (or compatable) at base+4.


>How-To-Repeat:

Config mss0 as appropriate for a Z-NoteFlex. probe_ms_sound() will fail
every time.


>Fix:

I have had this fixed for a while, but did not know the scope of the
problem. Solaris 2.x x86 has a flag to tell the driver whether or
not the MWSS "config register" exists, so perhaps this is more
widespread than I thought.

*** ad1848.c.orig	Thu Jan 18 12:54:08 1996
--- ad1848.c	Tue Sep 17 13:22:33 1996
***************
*** 1391,1396 ****
--- 1391,1397 ----
      mad16init (hw_config->io_base);
  #endif
  
+ #ifndef MSS_PLAIN_AD1848
    if ((INB (hw_config->io_base + 3) & 0x3f) != 0x04 &&
        (INB (hw_config->io_base + 3) & 0x3f) != 0x00)
      {
***************
*** 1426,1431 ****
--- 1427,1433 ----
        printk ("MSS: Can't use IRQ%d with a 8 bit card/slot\n", hw_config->irq);
        return 0;
      }
+ #endif /* MSS_PLAIN_AD1848 */
  
    return ad1848_detect (hw_config->io_base + 4);
  }

>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->feedback 
State-Changed-By: scrappy 
State-Changed-When: Tue Oct 22 22:37:43 PDT 1996 
State-Changed-Why:  

Confirm Status:  mss driver extension to broaden support 


Patch included in PR 

State-Changed-From-To: feedback->closed 
State-Changed-By: steve 
State-Changed-When: Sun Mar 22 18:01:05 PST 1998 
State-Changed-Why:  
Closed at originator's request. 
>Unformatted:
