Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 18 Sep 1996 11:10:08 -0700 (PDT)
From:      nsayer@quack.kfu.com
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   kern/1636: mss driver extension to broaden support
Message-ID:  <199609181810.LAA00811@morpheus.kfu.com>
Resent-Message-ID: <199609181820.LAA03361@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help

>Number:         1636
>Category:       kern
>Synopsis:       mss driver extension to broaden support
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Wed Sep 18 11:20:02 PDT 1996
>Last-Modified:
>Originator:     Nick Sayer
>Organization:
Just me
>Release:        FreeBSD 2.2-960801-SNAP i386
>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);
  }

>Audit-Trail:
>Unformatted:



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199609181810.LAA00811>