Date: Sun, 24 Nov 2002 22:21:08 +0900 From: Watanabe Kazuhiro <CQG00620@nifty.ne.jp> To: FreeBSD-gnats-submit@FreeBSD.org Subject: kern/45673: PC98 internal CS4231A is mis-detected to OPTi chip (newpcm) Message-ID: <200211241323.WAA11027@smtp2.nifty.ne.jp>
next in thread | raw e-mail | index | archive | help
>Number: 45673
>Category: kern
>Synopsis: PC98 internal CS4231A is mis-detected to OPTi chip (newpcm)
>Confidential: no
>Severity: serious
>Priority: medium
>Responsible: freebsd-bugs
>State: open
>Quarter:
>Keywords:
>Date-Required:
>Class: sw-bug
>Submitter-Id: current-users
>Arrival-Date: Sun Nov 24 05:30:01 PST 2002
>Closed-Date:
>Last-Modified:
>Originator: Watanabe Kazuhiro <CQG00620@nifty.ne.jp>
>Release: FreeBSD 4.5-RELEASE i386
>Organization:
>Environment:
System: FreeBSD aries.zodiac.org 4.5-RELEASE FreeBSD 4.5-RELEASE #13: Sun Nov 24 15:30:52 JST 2002 nabe@aries.zodiac.org:/usr/src/sys/compile/LEFTEYE i386
I'm tested on PC-9821Xa9.
>Description:
PC98 internal CS4231A, which used mostly PC-9821xx and some models of
PC-9801xx, is mis-detected to OPTi chip.
I think there isn't a soundcard which use a OPTi chip and also can use PC98.
>How-To-Repeat:
*kernel configuration*
device pcm0 at isa? port 0xf40 irq 10 drq 1 flags 0x10000
*dmesg*
Found OPTi device OPTi930
pcm0: <OPTi930> at port 0xf40-0xf47,0xf8f-0xf97,0xe0e irq 10 drq 1 flags 0x1b000 on isa0
drq/irq conf 1a
*dmesg - applied this patch*
pcm0: <CS4231A> at port 0xf40-0xf47 irq 10 drq 1 flags 0x1a100 on isa0
drq/irq conf 1a
>Fix:
--- mss.c.original Sun Nov 24 16:55:40 2002
+++ mss.c Sun Nov 24 17:17:07 2002
@@ -1341,6 +1341,7 @@
name = "AD1848";
mss->bd_id = MD_AD1848; /* AD1848 or CS4248 */
+#ifndef PC98
if (opti_detect(dev, mss)) {
switch (mss->bd_id) {
case MD_OPTI924:
@@ -1353,6 +1354,7 @@
printf("Found OPTi device %s\n", name);
if (opti_init(dev, mss) == 0) goto gotit;
}
+#endif
/*
* Check that the I/O address is in use.
>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?200211241323.WAA11027>
