From owner-freebsd-bugs Wed Sep 18 11:20:09 1996 Return-Path: owner-bugs Received: (from root@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA03421 for bugs-outgoing; Wed, 18 Sep 1996 11:20:09 -0700 (PDT) Received: (from gnats@localhost) by freefall.freebsd.org (8.7.5/8.7.3) id LAA03361; Wed, 18 Sep 1996 11:20:04 -0700 (PDT) Resent-Date: Wed, 18 Sep 1996 11:20:04 -0700 (PDT) Resent-Message-Id: <199609181820.LAA03361@freefall.freebsd.org> Resent-From: gnats (GNATS Management) Resent-To: freebsd-bugs Resent-Reply-To: FreeBSD-gnats@freefall.FreeBSD.org, nsayer@quack.kfu.com 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 ; 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 ; 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 X-Send-Pr-Version: 3.2 Subject: kern/1636: mss driver extension to broaden support Sender: owner-bugs@freebsd.org X-Loop: FreeBSD.org Precedence: bulk >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: