Subject: Re: Yamaha OPL3-SA3
To: None <current-users@NetBSD.ORG>
From: Wolfgang Rupprecht <wolfgang@wsrcc.com>
List: current-users
Date: 05/21/1998 10:28:08
augustss@cs.chalmers.se (Lennart Augustsson) writes:
> I've added a driver for the Yamaha OPL3-SA3 sound chip.
> It's fairly common in laptops and on some motherboards.
> ym*	at isapnp?			# Yamaha OPL3-SA3 audio
> audio*	at ym?

I just configged a new kernel from current sources with this enabled.
(Fresh sup, /bin/rm -rf of old kernel dir etc.)  The target is an
Intel P-II AL440LX with the optional yamaha audio chip.  The audio
driver appears to just hang when I cat an au file into /dev/audio.
Ditto for trying to run mpg123.  Forcully terminating the program with
^C causes the following to be logged.

    May 21 09:50:19 capsicum /netbsd: audio_sleep: woke up st=4
    May 21 09:51:13 capsicum /netbsd: audio_sleep: woke up st=35
    May 21 09:52:41 capsicum /netbsd: audio_sleep: woke up st=35

This is what is detected:

    May 21 09:03:20 capsicum /netbsd: ym0 at isapnp0 port
    0x220/16,0x530/8,0x388/8,0x330/2,0x370/2 irq 5 drq 0,1: (null)audio0
    at ym0

The first quirk appears to be the "(null)" in "(null)audio0".

Previously the chip was detected as such:

    May 17 00:21:03 capsicum /netbsd: isapnp0: <OPL3-SA3 Snd System,
    YMH0021, , > port 0x220/16,0x530/8,0x388/8,0x330/2,0x370/2 irq 5 drq
    0,1 not configured

I did have some very limited success with running this motherboard
with the sb driver.  I could get some sounds out of it in 8-bit modes
at a low sample rate.

-wolfgang