From yoshiaki@kt.rim.or.jp  Tue Oct  6 10:03:56 1998
Received: from mail.kt.rim.or.jp (mail.kt.rim.or.jp [202.247.130.53])
          by hub.freebsd.org (8.8.8/8.8.8) with ESMTP id KAA27509
          for <FreeBSD-gnats-submit@freebsd.org>; Tue, 6 Oct 1998 10:03:33 -0700 (PDT)
          (envelope-from yoshiaki@kt.rim.or.jp)
Received: from singer.kt.rim.or.jp (ppp391.kt.rim.or.jp [202.247.140.91])
	by mail.kt.rim.or.jp (8.8.5/3.6W-RIMNET-98-06-09) with ESMTP id CAA01026
	for <FreeBSD-gnats-submit@freebsd.org>; Wed, 7 Oct 1998 02:03:21 +0900 (JST)
Received: (from yoshiaki@localhost) by singer.kt.rim.or.jp (8.9.1/3.4Wbeta3-96070610) id BAA00647; Wed, 7 Oct 1998 01:39:33 +0900 (JST)
Message-Id: <199810061639.BAA00647@singer.kt.rim.or.jp>
Date: Wed, 7 Oct 1998 01:39:33 +0900 (JST)
From: yoshiaki@kt.rim.or.jp
Reply-To: yoshiaki@kt.rim.or.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: sound driver (pcm : Luigi's driver) YMF-719 probrem
X-Send-Pr-Version: 3.2

>Number:         8169
>Category:       kern
>Synopsis:       [patch] probe fail PnP sound card (YMF-719 base board)
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    luigi
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Tue Oct  6 10:10:01 PDT 1998
>Closed-Date:    Mon Jan 18 11:21:45 PST 1999
>Last-Modified:  Mon Jan 18 11:22:47 PST 1999
>Originator:     Yoshiaki Uchikawa
>Release:        FreeBSD 3.0-BETA i386
>Organization:
Rimnet
>Environment:
Mainboad
Tekram P6F40-B5 Bios revision 1.2

FreeBSD 3.0-BETA #0: Wed Oct  7 01:11:19 JST 1998
CPU: Pentium Pro (232.67-MHz 686-class CPU)
real memory  = 100663296 (98304K bytes)
avail memory = 95350784 (93116K bytes)
vga0: <VGA-compatible display device> rev 0x10 int a irq 9 on pci0.9.0
ncr0: <ncr 53c875 fast20 wide scsi> rev 0x03 int a irq 11 on pci0.11.0
bktr0: <BrookTree 848> rev 0x12 int a irq 15 on pci0.13.0
Miro TV, Temic NTSC tuner.
mss_attach <Yamaha YMF719 OPL-SA3>1 at 0x530 irq 5 dma 0:1 flags 0x11
da0: <IBM DCAS-34330 S61A> Fixed Direct Access SCSI2 device 
da1: <IBM DORS-32160 S82C> Fixed Direct Access SCSI2 device 

>Description:

I use YMF-719 base sound card. This card was failed mss_attach by PnP 
configure.

In /var/log/messages

Oct  6 07:15:36 singer /kernel: CSN 1 Vendor ID: YMH0800 [0x0008a865] Serial 0xffffffff Comp ID: PNPb02f [0x2fb0d041]
Oct  6 07:15:36 singer /kernel: mss_attach <Yamaha YMF719 OPL-SA3>1 at
0x21c irq 5 dma 0:1 flags 0x11 
^^^^^
Oct  6 07:15:36 singer /kernel: pcm1 (CS423x/Yamaha <Yamaha YMF719
OPL-SA3> sn 0xffffffff) at 0x21c-0x223 irq 5 drq 0 flags 0x11 on isa
                           ^^^^^^^^^^^
>How-To-Repeat:

In UserConfig 
Config> pnp 1 0 enable bios

>Fix:
This is simple mistake. "vend_id" is law ID.
"id" was masked by  0xff00ffff .
So... it is easy to confuse.

--- ad1848.c.orig	Wed Oct  7 01:04:07 1998
+++ ad1848.c	Wed Oct  7 01:22:34 1998
@@ -1412,7 +1412,7 @@
 	s = "Yamaha SA2";
     else if ( id == 0x3000a865)
 	s = "Yamaha SA3";
-    else if (vend_id == 0x0000a865)
+    else if (vend_id == 0x0008a865)
 	s = "Yamaha YMF719 OPL-SA3";
     else if (vend_id == 0x8140d315)
 	s = "SoundscapeVIVO";
@@ -1467,7 +1467,7 @@
 
 	case 0x2000a865:	/* Yamaha SA2 */
 	case 0x3000a865:	/* Yamaha SA3 */
-	case 0x0000a865:	/* Yamaha TMF719 SA3 */
+	case 0x0000a865:	/* Yamaha YMF719 SA3 */
 	    dev->id_iobase = d.port[1];
 	    tmp_d.alt_base = d.port[0];
 	    tmp_d.conf_base = d.port[4];

-----
  yoshiaki@kt.rim.or.jp
  yoshiaki@jp.freebsd.org
   Yoshiaki UCHIKAWA
>Release-Note:
>Audit-Trail:
Responsible-Changed-From-To: freebsd-bugs->luigi 
Responsible-Changed-By: luigi 
Responsible-Changed-When: Sun Dec 27 04:03:09 PST 1998 
Responsible-Changed-Why:  
driver maintainer 
State-Changed-From-To: open->closed 
State-Changed-By: luigi 
State-Changed-When: Mon Jan 18 11:21:45 PST 1999 
State-Changed-Why:  
fixed some time ago, forgot to close the PR then 
>Unformatted:
