Skip to contentSkip to conversation

Yamaha opl3

DISCUSSION Catalin Marinescu 6 participants 7 messages Sep 7, 1998 – Jan 13, 1999 Sound

lore
Share & tools
lore
#0 lore raw

Hi all !
I have a sound card Yamaha opl3 and I can't make it work on my linux
system.
If anyone knows how can I fix this please help me.
Thanks.

#1 lore raw

Any log messages or details might help.

Quoted 5 lines · On 07-Sep-98 Catalin Marinescu wrote:

Hi all !
I have a sound card Yamaha opl3 and I can't make it work on my linux
system.
If anyone knows how can I fix this please help me.
Thanks.

#2 lore raw
In reply to Catalin Marinescu

I'm not sure this helps, but I had the same problem a while ago. Not quite resolved, yet. Here's my experience (in the hopes of helping Catalin gather some data, and soliciting some insight for my own situation) -

pnpdump detected nothing. may I assume the card is not plug-n-play?

I created a file /etc/conf.modules, following some instructions from one of the FAQ/HOW-TOs, with these lines (parameters copied from Win95 - yes the card works there):

alias sound sb
options -k sb io=0x220 irq=5 dma=0,5
alias midi opl3
options -k opl3 io=0x388

loaded the sound module by hand, now lsmod shows:

# lsmod
Module         Pages    Used by
3c589_cs           2            1
ds                 2    [3c589_cs]      3
i82365             4            2
pcmcia_core        8    [3c589_cs ds i82365]    4
opl3               3            0
sb                 6            0
uart401            2    [sb]    0
sound             16    [opl3 sb uart401]       0

I was able to play some mpeg sound files, though the sound was terrible. When I tried to play some sound files in another format using our own software, I get "can't open wave dev, -1" as an error message. doing an strace on it shows:

open("/dev/dsp", O_WRONLY) = 3
ioctl(3, SOUND_PCM_WRITE_CHANNELS, 0xbfffd3e0) = 0 ioctl(3, SNDCTL_DSP_SETFMT, 0xbfffd3dc) = 0
write(2, "cant open wave dev, err -1\n", 27cant open wave dev, err -1 ) = 27

Well, it seems that one of the ioctl syscall did not get the right value back. perhaps I'm missing some sound drivers?

Would appreciate some insight.

Zewei

Quoted 5 lines · Catalin Marinescu

Hi all !
I have a sound card Yamaha opl3 and I can't make it work on my linux
system.
If anyone knows how can I fix this please help me.
Thanks.

#3 lore raw
In reply to Catalin Marinescu
Quoted 5 lines · Catalin Marinescu

Hi all !
I have a sound card Yamaha opl3 and I can't make it work on my linux
system.
If anyone knows how can I fix this please help me.
Thanks.

If you've got just a plain OPL3 (doubtful, but possible), just use the OPL3 driver in the kernel.

If you've got an OPL3-SA1, use the OPL3-SA1 driver, available in the 2.1.x kernels, or in Alan Cox's modular sound backport to 2.0.3x.

If you've got an OPL3-SA2/3, you can use the ALSA drivers, available at http://alsa.jcu.cz/

Alternatively, you could try the OSS/Linux drivers, available for a free trial at http://www.opensound.com/linux.html - it supports all the OPL3-SAx versions, according to the web site.

Bill

#4 lore raw
In reply to Catalin Marinescu

i have the yamaha opl3sax on a gw2k 9100 xl laptop and my card works whenever i warm boot from win/dos into linux...this can be accomplished via lilo or loadlin but with this procedure the i/o 'defaults' are kept the same...and oss or any of
that other shit to let u do what u should be able to do is not necessary cause
linux wants to send the irq number to a different number(my os's r gaywin95/gaynt 4/ and linux)

Quoted 54 lines · zewei chen

I'm not sure this helps, but I had the same problem a while ago. Not quite resolved, yet. Here's my experience (in the hopes of helping Catalin gather some data, and soliciting some insight for my own situation) -

pnpdump detected nothing. may I assume the card is not plug-n-play?

I created a file /etc/conf.modules, following some instructions from one of the FAQ/HOW-TOs, with these lines (parameters copied from Win95 - yes the card works there):

alias sound sb
options -k sb io=0x220 irq=5 dma=0,5
alias midi opl3
options -k opl3 io=0x388

loaded the sound module by hand, now lsmod shows:

# lsmod
Module         Pages    Used by
3c589_cs           2            1
ds                 2    [3c589_cs]      3
i82365             4            2
pcmcia_core        8    [3c589_cs ds i82365]    4
opl3               3            0
sb                 6            0
uart401            2    [sb]    0
sound             16    [opl3 sb uart401]       0

I was able to play some mpeg sound files, though the sound was terrible. When I tried to play some sound files in another format using our own software, I get "can't open wave dev, -1" as an error message. doing an strace on it shows:

open("/dev/dsp", O_WRONLY) = 3
ioctl(3, SOUND_PCM_WRITE_CHANNELS, 0xbfffd3e0) = 0 ioctl(3, SNDCTL_DSP_SETFMT, 0xbfffd3dc) = 0
write(2, "cant open wave dev, err -1\n", 27cant open wave dev, err -1 ) = 27

Well, it seems that one of the ioctl syscall did not get the right value back. perhaps I'm missing some sound drivers?

Would appreciate some insight.

Zewei

Quoted 5 lines · Catalin Marinescu

Hi all !
I have a sound card Yamaha opl3 and I can't make it work on my linux
system.
If anyone knows how can I fix this please help me.
Thanks.

#5 lore raw
In reply to Catalin Marinescu

Ok... I've been fighting with this on-board sound card since I installed linux a few months ago.. It's on my Tyan 1696 motherboard. What do I need to do to get this sound card working? I've found things about compiling the opti something or other drivers into the kernel, but that didn't work (unless I did it wrong). I also had some 3rd party software, which worked.. but I'd prefer to just have the kernel control everything.

Please help!
Eric

#6 lore raw
In reply to Catalin Marinescu
Quoted 7 lines · Eric Barendt

Ok... I've been fighting with this on-board sound card since I installed linux a few months ago.. It's on my Tyan 1696 motherboard. What do I need to do to get this sound card working? I've found things about compiling the opti something or other drivers into the kernel, but that didn't work (unless I did it wrong). I also had some 3rd party software, which worked.. but I'd prefer to just have the kernel control everything.

Assuming it's an OPL3-SA2/3/x (most likely), you should be able to configure the card with isapnptools and use the OPL3-SAx driver in 2.1.late/2.2.0pre. (If you're using 2.2.0pre, you'd want to get at least 2.2.0pre6, as that fixes bugs in the detection code, IIRC.)

Bill