From gibbs@caspian.plutotech.com  Wed Dec 22 11:50:13 1999
Return-Path: <gibbs@caspian.plutotech.com>
Received: from caspian.plutotech.com (caspian.plutotech.com [206.168.67.80])
	by hub.freebsd.org (Postfix) with ESMTP id A941E15066
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 22 Dec 1999 11:50:12 -0800 (PST)
	(envelope-from gibbs@caspian.plutotech.com)
Received: (from gibbs@localhost)
	by caspian.plutotech.com (8.9.3/8.9.1) id MAA00517;
	Wed, 22 Dec 1999 12:50:20 -0700 (MST)
	(envelope-from gibbs)
Message-Id: <199912221950.MAA00517@caspian.plutotech.com>
Date: Wed, 22 Dec 1999 12:50:20 -0700 (MST)
From: "Justin T. Gibbs" <gibbs@FreeBSD.org>
Sender: gibbs@caspian.plutotech.com
Reply-To: gibbs@FreeBSD.org
To: FreeBSD-gnats-submit@freebsd.org
Subject: mss driver fails to recognize CS4239 on Thinkpad 770X
X-Send-Pr-Version: 3.2

>Number:         15632
>Category:       kern
>Synopsis:       mss driver fails to recognize CS4239 on Thinkpad 770X
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Wed Dec 22 12:00:01 PST 1999
>Closed-Date:    Thu Aug 24 12:02:40 PDT 2000
>Last-Modified:  Thu Aug 24 12:04:19 PDT 2000
>Originator:     Justin T. Gibbs
>Release:        FreeBSD 4.0-CURRENT i386
>Organization:
>Environment:

	Thinkpad 770X with CS4610 PCI accellarator CS4239 sound configuraiton.
	I  believe the TP660 has the same setup.

>Description:

	Until we can get the PCI CS driver to handle non AC-97 codecs,
	we should attach directly to the CS4239 and run in ISA
	compatibiliy mode.  Unfortunately, all of the CS resources
	on the board have a slightly different logical ID than the
	normal ones.  They use CSC01XX instead of CS00XX.  Perhaps
	this is to indicate that there is a PCI accelerator attached?

>How-To-Repeat:

	Add the pcm driver to your kernel config and boot that kernel.

>Fix:

==== //depot/FreeBSD-current/src/sys/dev/sound/isa/mss.c#6 - /usr/src/sys/dev/sound/isa/mss.c ====
*** /tmp/tmp.315.32	Wed Dec 22 12:43:21 1999
--- /usr/src/sys/dev/sound/isa/mss.c	Wed Dec 22 12:37:45 1999
***************
*** 1325,1330 ****
--- 1329,1335 ----
  }
  
  static struct isa_pnp_id pnpmss_ids[] = {
+ 	{0x0001630e, "CS423x"},				/* CSC0000 */
  	{0x0000630e, "CS423x"},				/* CSC0000 */
      	{0x01000000, "CMI8330"},			/* @@@0001 */
  	{0x2100a865, "Yamaha OPL-SAx"},			/* YMH0021 */
***************
*** 1360,1365 ****
--- 1365,1371 ----
  	mss->drq2_rid = 1;
  
  	switch (isa_get_logicalid(dev)) {
+ 	case 0x0001630e:			/* CSC0000 */
  	case 0x0000630e:			/* CSC0000 */
  	    mss->bd_flags |= BD_F_MSS_OFFSET;
  	    mss->bd_id = MD_CS42XX;


>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: johan 
State-Changed-When: Thu Aug 24 12:02:40 PDT 2000 
State-Changed-Why:  
Patch applied in rev 1.41 (while HEAD was 4-CURRENT) by peter. 


http://www.freebsd.org/cgi/query-pr.cgi?pr=15632 
>Unformatted:
