From seki@localhost.seki.net Mon Dec  6 20:12:54 1999
Return-Path: <seki@localhost.seki.net>
Received: from localhost.seki.net (UTUcc-02p33.ppp.odn.ad.jp [143.90.242.102])
	by hub.freebsd.org (Postfix) with ESMTP id B343714BE7
	for <FreeBSD-gnats-submit@freebsd.org>; Mon,  6 Dec 1999 20:12:51 -0800 (PST)
	(envelope-from seki@localhost.seki.net)
Received: (from seki@localhost)
	by localhost.seki.net (8.9.3/8.9.2) id NAA18271;
	Tue, 7 Dec 1999 13:14:10 +0900 (JST)
	(envelope-from seki)
Message-Id: <199912070414.NAA18271@localhost.seki.net>
Date: Tue, 7 Dec 1999 13:14:10 +0900 (JST)
From: seki@is.utsunomiya-u.ac.jp
Sender: seki@localhost.seki.net
Reply-To: seki@is.utsunomiya-u.ac.jp
To: FreeBSD-gnats-submit@freebsd.org
Subject: Simple patche to /sys/i386/isa/snd/ad1848.c
X-Send-Pr-Version: 3.2

>Number:         15327
>Category:       i386
>Synopsis:       Unable to use ISA sound card with AD1816A chip
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  6 20:20:01 PST 1999
>Closed-Date:    Wed May 30 02:17:01 PDT 2001
>Last-Modified:  Wed May 30 02:17:31 PDT 2001
>Originator:     Kazuo Seki
>Release:        FreeBSD 3.3-STABLE i386
>Organization:
<Utsunomiya University, Japan>
>Environment:
FreeBSD localhost 3.3-STABLE FreeBSD 3.3-STABLE #17: Sun Nov 28 11:43:57 JST 1999     seki@localhost:/usr/src/sys/compile/KSS1  i386


>Description:
By the description of src/sys/i386/isa/snd/CARDS file, AD1815/AD1816
sound driver was contributed by Mr. German Tischler. But my ISA sound 
card with AD1816A which is compatible for AD1816 did not work by using
either Luigi's pcm dirver or OSS driver. But simple patches to
src/sys/i386/isa/snd/ad1848.c makes me happy to enjoy sound life on
FreeBSD 3.3-stable.  

>How-To-Repeat:
>Fix:
After applying patch below, add the entry
"device pcm0 at isa? port? tty irq 5 drq 1 flags 0x15"
to kernel configuration file, 
	
--- ad1848.c.orig	Mon May 10 21:31:53 1999
+++ ad1848.c	Tue Dec  7 12:44:39 1999
@@ -1465,7 +1465,9 @@
     else if (vend_id == 0x1114b250)
 	s = "Terratec Soundsystem BASE 1";
     else if (vend_id == 0x50719304)
-	s = "Generic AD1815";
+    s = "Generic AD1815";
+	else if (vend_id == 0x81719304)
+	s = "AD1816A";
     if (s) {
 	struct pnp_cinfo d;
 	read_pnp_parms(&d, 0);
@@ -1496,7 +1498,7 @@
     snddev_last_probed = &tmp_d;
 
     /* AD1816 */
-    if (vend_id == 0x1114b250 || vend_id == 0x50719304) {
+    if (vend_id == 0x1114b250 || vend_id == 0x50719304 || vend_id == 0x81719304) {
 	dev->id_alive = 16;	/* number of io ports ? */
 
 	tmp_d = mss_op_desc;	/* copy it */



>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->closed 
State-Changed-By: sos 
State-Changed-When: Wed May 30 02:17:01 PDT 2001 
State-Changed-Why:  
Obsolete, we have a new sound subsystem. 

http://www.FreeBSD.org/cgi/query-pr.cgi?pr=15327 
>Unformatted:
