From 6643b656bb7b5b546fa0545a96de8c2e87bbd78d Mon Sep 17 00:00:00 2001 From: Alexander Leidinger Date: Sun, 11 Sep 2005 10:07:12 +0000 Subject: [PATCH] Fix misdetection of the sound chip on PC98 systems. The submitter doesn't believe that there are PC98 systems with an OPTi chip. I don't know enough about this special PC architecture to be sure about this, so let's find out by letting people with such a system complain in case this commit breaks the sound system for them. It's easy to revert then. PR: 45673 Submitted by: Watanabe Kazuhiro --- sys/dev/sound/isa/mss.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/dev/sound/isa/mss.c b/sys/dev/sound/isa/mss.c index 53bf70ec48b4..298fe604a983 100644 --- a/sys/dev/sound/isa/mss.c +++ b/sys/dev/sound/isa/mss.c @@ -1367,6 +1367,7 @@ mss_detect(device_t dev, struct mss_info *mss) name = "AD1848"; mss->bd_id = MD_AD1848; /* AD1848 or CS4248 */ +#ifndef PC98 if (opti_detect(dev, mss)) { switch (mss->bd_id) { case MD_OPTI924: @@ -1379,6 +1380,7 @@ mss_detect(device_t dev, struct mss_info *mss) 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.