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 <CQG00620@nifty.ne.jp>
This commit is contained in:
Alexander Leidinger 2005-09-11 10:07:12 +00:00
parent caad740808
commit 6643b656bb
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=149981

View File

@ -1367,6 +1367,7 @@ mss_detect(device_t dev, struct mss_info *mss)
name = "AD1848"; name = "AD1848";
mss->bd_id = MD_AD1848; /* AD1848 or CS4248 */ mss->bd_id = MD_AD1848; /* AD1848 or CS4248 */
#ifndef PC98
if (opti_detect(dev, mss)) { if (opti_detect(dev, mss)) {
switch (mss->bd_id) { switch (mss->bd_id) {
case MD_OPTI924: case MD_OPTI924:
@ -1379,6 +1380,7 @@ mss_detect(device_t dev, struct mss_info *mss)
printf("Found OPTi device %s\n", name); printf("Found OPTi device %s\n", name);
if (opti_init(dev, mss) == 0) goto gotit; if (opti_init(dev, mss) == 0) goto gotit;
} }
#endif
/* /*
* Check that the I/O address is in use. * Check that the I/O address is in use.