From yoshiaki@kt.rim.or.jp  Sun Apr 19 09:45:01 1998
Received: from mail.kt.rim.or.jp (root@mail.kt.rim.or.jp [202.247.130.53])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id JAA24587
          for <FreeBSD-gnats-submit@freebsd.org>; Sun, 19 Apr 1998 09:44:59 GMT
          (envelope-from yoshiaki@kt.rim.or.jp)
Received: from singer.kt.rim.or.jp (ppp373.kt.rim.or.jp [202.247.140.73]) by mail.kt.rim.or.jp (8.8.5/3.4W3-rim1.1) with ESMTP id SAA28659; Sun, 19 Apr 1998 18:44:57 +0900 (JST)
Received: (from yoshiaki@localhost) by singer.kt.rim.or.jp (8.8.8/3.4Wbeta3-96070610) id SAA00799; Sun, 19 Apr 1998 18:21:43 +0900 (JST)
Message-Id: <199804190921.SAA00799@singer.kt.rim.or.jp>
Date: Sun, 19 Apr 1998 18:21:43 +0900 (JST)
From: yoshiaki@kt.rim.or.jp
Reply-To: yoshiaki@kt.rim.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Luigi's sound driver problem
X-Send-Pr-Version: 3.2

>Number:         6348
>Category:       kern
>Synopsis:       Use Yamaha YMF-719 on  Luigi's sound driver.
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          change-request
>Submitter-Id:   current-users
>Arrival-Date:   Sun Apr 19 02:50:01 PDT 1998
>Closed-Date:    Sun May 10 16:56:56 PDT 1998
>Last-Modified:  Sun May 10 16:57:11 PDT 1998
>Originator:     Yoshiaki Uchikawa
>Release:        FreeBSD 3.0-CURRENT i386
>Organization:
RIMNET
>Environment:
CPU: Pentium Pro (232.67-MHz 686-class CPU)
  Origin = "GenuineIntel"  Id = 0x619  Stepping=9
  Features=0xf9ff<FPU,VME,DE,PSE,TSC,MSR,PAE,MCE,CX8,SEP,MTRR,PGE,MCA,CMOV>
real memory  = 100663296 (98304K bytes)
avail memory = 95510528 (93272K bytes)

chip0: <Intel 82440FX (Natoma) PCI and memory controller> rev 0x02 on pci0.0.0
chip1: <Intel 82371SB PCI to ISA bridge> rev 0x01 on pci0.1.0
ide_pci0: <Intel PIIX3 Bus-master IDE controller> rev 0x00 on pci0.1.1
vga0: <S3 968 graphics accelerator> rev 0x00 int a irq 255 on pci0.10.0
ncr0: <ncr 53c875 fast20 wide scsi> rev 0x03 int a irq 9 on pci0.11.0

sd0: <IBM DCAS-34330 S61A> type 0 fixed SCSI 2
sd1: <IBM DORS-32160 S82C> type 0 fixed SCSI 2
cd0: <NEC CD-ROM DRIVE:502 2.0r> type 5 removable SCSI 2
st0: <ARCHIVE 4326XX 27871-XXX 4.BG> type 1 removable SCSI 2
bktr0: <BrookTree 848> rev 0x12 int a irq 15 on pci0.13.0
Miro TV, Temic NTSC tuner.
CSN 1 Vendor ID: YMH0800 [0x0008a865] Serial 0xffffffff
mss_attach <Yamaha YMF719 OPL-SA3>1 at 0x530 irq 11 dma 0:1 flags 0x11
pcm1 (CS423x/Yamaha <Yamaha YMF719 OPL-SA3> sn 0xffffffff) at 0x530-0x537 irq 1

>Description:
I make patch for using Yamaha YMF-719 sound chip on  Luigi's new sound 
dirver. It is only additonal PnP ID for YMF719.

>How-To-Repeat:
>Fix:
--- ad1848.c.orig	Fri Feb 13 19:37:41 1998
+++ ad1848.c	Sat Apr 11 10:05:18 1998
@@ -1362,6 +1362,8 @@
 	s = "Yamaha SA2";
     else if ( id == 0x3000a865)
 	s = "Yamaha SA3";
+    else if ( id == 0x0000a865)
+	s = "Yamaha YMF719 OPL-SA3";
     else if (vend_id == 0x8140d315)
 	s = "SoundscapeVIVO";
     if (s) {
@@ -1395,7 +1397,7 @@
     if (d.flags & DV_PNP_SBCODEC) {	/*** use sb-compatible codec ***/
 	dev->id_alive = 16 ; /* number of io ports ? */
 	tmp_d = sb_op_desc ;
-	if (vend_id==0x2000a865 || vend_id==0x3000a865 || vend_id==0x8140d315) {
+	if (vend_id == 0x0008a865 || vend_id==0x2000a865 || vend_id==0x3000a865 || vend_id==0x8140d315) {
 	    /* Yamaha SA2/SA3 or ENSONIQ SoundscapeVIVO ENS4081 */
 	    dev->id_iobase = d.port[0] ;
 	    tmp_d.alt_base = d.port[1] ;
@@ -1414,6 +1416,7 @@
 
 	case 0x2000a865:	/* Yamaha SA2 */
 	case 0x3000a865:	/* Yamaha SA3 */
+	case 0x0000a865:	/* Yamaha YMF719 */
 	    dev->id_iobase = d.port[1];
 	    tmp_d.alt_base = d.port[0];
 	    tmp_d.conf_base = d.port[4];
	
	

>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: gnats-admin->freebsd-bugs 
Responsible-Changed-By: steve 
Responsible-Changed-When: Sun Apr 19 10:25:00 PDT 1998 
Responsible-Changed-Why:  
Misfiled PR. 
State-Changed-From-To: open->closed 
State-Changed-By: steve 
State-Changed-When: Sun May 10 16:56:56 PDT 1998 
State-Changed-Why:  
Patch committed, thanks! 
>Unformatted:
