From nsayer@quack.kfu.com  Tue Apr  1 22:49:22 1997
Received: from quack.kfu.com (0@quack.kfu.com [204.147.226.1])
          by freefall.freebsd.org (8.8.5/8.8.5) with SMTP id WAA10550
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 1 Apr 1997 22:49:21 -0800 (PST)
Received: from icarus.kfu.com (icarus.kfu.com [204.147.226.3]) by quack.kfu.com (8.6.12/8.6.12) with ESMTP id WAA23852 for <FreeBSD-gnats-submit@freebsd.org>; Tue, 1 Apr 1997 22:49:12 -0800
Received: by icarus.kfu.com 
        (8.8.2//ident-1.0) id WAA00427; Tue, 1 Apr 1997 22:49:12 -0800 (PST) 
Message-Id: <199704020649.WAA00427@icarus.kfu.com>
Date: Tue, 1 Apr 1997 22:49:12 -0800 (PST)
From: nsayer@quack.kfu.com
Reply-To: nsayer@quack.kfu.com
To: FreeBSD-gnats-submit@freebsd.org
Subject: CS4232 support trouble for mss0
X-Send-Pr-Version: 3.2

>Number:         3172
>Category:       kern
>Synopsis:       CS4232 support trouble for mss0
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          support
>Submitter-Id:   current-users
>Arrival-Date:   Tue Apr  1 22:50:02 PST 1997
>Closed-Date:    Sun Mar 22 18:05:58 PST 1998
>Last-Modified:  Sun Mar 22 18:06:59 PST 1998
>Originator:     Nick Sayer
>Release:        FreeBSD 2.2-ALPHA i386
>Organization:
Just me
>Environment:

HP Omnibook 5000

>Description:

The current release of OSS seems broken, so I am left with trying to
get the Voxware stuff to work. The CS4232 doesn't probe at all
without the DOS/win enabler, but alas, even with it the resulting
configuration is incompatable with the MSS driver. The enabler leaves
the card at 0x530, IRQ 5, DMA 0 & 1.

Fortunately the contents of attach_ms_sound() are largely ineffectual
(the parts that set the IRQ and DMA at least) for the CS4232.
But IRQ 5 is not a traditional MSS setting. The fix is to fiddle
attach_ms_sound()'s interrupt_bits list so that the entry for
irq 5 is 0 instead of -1, then compile the kernel with
MSS_PLAIN_AD1848 (see PR # 1636). probe_ms_sound() will be largely
eviscerated MS_PLAIN_AD1848. attach_ms_sound() will poke around
not doing anything important, and pass along that it looks like a
CS4231, which is fine, and everything will work.

All of this nonsense is necessary because the sb driver (which otherwise
works) doesn't realize that this is a 16 bit sound card (sbxvi doesn't
work).

Clearly, however, the correct thing to do is to add CS4232 support
to both probe_ms_sound (to work around MSS_PLAIN_AD1848 and to do
the work of the DOS enabler) and attach_ms_sound (to not bother trying
to set the DMA and IRQ and to not freak about "weird" combinations).

>How-To-Repeat:

>Fix:
	
>Release-Note:
>Audit-Trail:

From: Nick Sayer <nsayer@quack.kfu.com>
To: freebsd-gnats-submit@freebsd.org
Cc:  Subject: Re: kern/3172: CS4232 support trouble for mss0
Date: Wed, 02 Apr 1997 09:52:40 -0800

 Although this machine still requires the hack^H^H^H^Hpatches described,
 it aparently no longer requires the DOS enabler. I guess the
 default confugration is to put the MSS compatable stuff at
 0x534 (but you tell the mss driver 0x530 because it adds
 4 to find the real hardware), irq 5 and DMA 0 and 1.
 The DOS enabler aparently turns on the soundblaster emulation,
 which is why it was required when I was using the sb driver.
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun Mar 22 18:05:58 PST 1998 
State-Changed-Why:  
Luigi's new sound driver and PNP support fixed this. 
>Unformatted:
