Subject: Re: Sound card problem (YMH0021)
To: Krister Walfridsson <cato@df.lth.se>
From: David M. Stanhope DMS <dms@celtech.com>
List: port-i386
Date: 04/09/1998 13:55:00
On Thu, 9 Apr 1998, Krister Walfridsson wrote:
B

> Date: Thu, 9 Apr 1998 20:37:45 +0200 (MET DST)
> From: Krister Walfridsson <cato@df.lth.se>
> To: port-i386@NetBSD.ORG
> Subject: Sound card problem (YMH0021)
> 
> I have some problems with a stupid sound card which advertises itself as
> 
> Apr  9 20:16:58 ulysses /netbsd: isapnp0 at isa0 port 0x279: read port
> 0x203
> Apr  9 20:16:58 ulysses /netbsd: isapnp0: <OPL3-SAX Sound Board, YMH0021, 
> , > port 0x220/16,0x530/8,0x388/4,0x330/2,0x370/2 irq 5 drq 0,1 not
> configured
> 
> and using current source from a couple of days ago.
> 
> Adding YMH0021 to sb_isapnp_match() doesn't help, so I searched the mail
> archive, and found that Dave Stanhope suggested (for a similar board)
> changing the line (in sb_isapnp_attach())
> 
>         sc->sc_drq8 = ipa->ipa_drq[0].num;
> to:
>         sc->sc_drq8 = ipa->ipa_drq[1].num;
> 
> 
> I have done that, and now I'm able to play sound, but only 7 seconds, 
> which then loops forever, and the AUDIO_GETOOFFS ioctl always gives
> saples = 0, so I guess the driver doesn't understand that it need
> to send more data to the card.
> 
> Any suggestions what I should do to get this card working?
> 
>    /Krister
> 
> 
> 
My only guess might be the interrupt not really working, is there something
else in the system trying to use irq-5. I no longer have such a system so
haven't tried it with current.
                       Dave Stanhope