Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 7 Dec 1999 13:14:10 +0900 (JST)
From:      seki@is.utsunomiya-u.ac.jp
To:        FreeBSD-gnats-submit@freebsd.org
Subject:   i386/15327: Simple patche to /sys/i386/isa/snd/ad1848.c
Message-ID:  <199912070414.NAA18271@localhost.seki.net>

next in thread | raw e-mail | index | archive | help

>Number:         15327
>Category:       i386
>Synopsis:       <Unable to use ISA sound card with AD1816A chip>
>Confidential:   yes
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Mon Dec  6 20:20:01 PST 1999
>Closed-Date:
>Last-Modified:
>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:
>Unformatted:


To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199912070414.NAA18271>