Activate sound


Forum: Multimedia
Topic: Activate sound
started by: JohnJS

Posted by JohnJS on Nov. 15 2006,17:20
How do I activate my Yamaha sound?.

In SystemStats I get:

Hdwe:
sound fullname="opl3-sa3 snd system=unknown"
sound driver="ad1848"

Modules:
ad1848 20812 0 (unused)
sound 55276 0 (ad1848)
soundcore 3428 2 (sound).
TIA.

Posted by andrewb on Nov. 15 2006,22:26
What system do you have?

For the opl3 sound system on my Libretto 100CT I use the following in /opt/bootlocal.sh :

modprobe opl3 io=0x388

modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0 ymode=2 isapnp=0 multiple=0

You may need to change some of the addesses/dma channels for your system. If you've used windows & the sound worked OK you will be able to get the correct settings via the device manager in windows.

I found I didn't need the ad1848 module. Once you have the sound running check the output of 'umix -q'. On the Libretto the OPL3 system runs 2 sound mixer devices. The verison of DMIX in the latest releases of DSL (post v2.4) should cope with such a system OK, though there could be some confusion if your system has built-in & external microphones that you want to control independently. (both have the same name on separate mixer devices & the coding for DMIX will change both simultaneously).

Posted by JohnJS on Nov. 15 2006,23:23
Thanks andrewb.
Am using PII 233mhz 320mb ram.
Had Win2k on it and the sound worked. I removed Win2k. Only have DSL 3.0.1 now.
Tried your code. No success. Startup screen flashed too fast to record error "Pause/Break"  does not pause the screen as in Win.
Noticed in preferences for xmms there are setup options. Perhaps I should be changing something there.
Am a newbie at Linux.

Posted by andrewb on Nov. 16 2006,02:19
As you don't have the port/address settings you may have to try some experimentation to find the correct settings. You can use the above commands at the command prompt & use 'rmmod opl3' (or opl3sa3) to remove the modules & try again if things don't go right. modprobing may load other drivers such as sound & soundcore. do 'lsmod' to see the full list. You need to remove modules in the order they appear in the list (top to bottom). All this will require superuser rights (right click the 'Aterminal' icon & select 'Aterm  as super user'. You might want to have a look at:

< http://www.topology.org/linux/sound.html >

this should point you in the right direction as to how to find the correct port/address numbers.

DSL has the opl3, opl3sa, & opl3sa2 modules included as standard. You might want to try the opl3sa one instead of the opl3sa2, or try to find a suitable opl3sa3 module.

Posted by JohnJS on Nov. 16 2006,20:35
Re-installed Win2k and got info on sound from device manager.
Five i/o addresses
One irq
Two dma.
Where would I go to set these in DSL?.
Thanks.

Posted by Grisen on Nov. 18 2006,02:52
Thanks to Andrew B !!!!! for clearly posting which file to change and the exact code to write.....  This solved my problem with this card that many posts on the net said was unusable with Linux:  Neomagic 3DX

>For the opl3 sound system on my Libretto 100CT I use the following in >/opt/bootlocal.sh :
>
>modprobe opl3 io=0x388
>
>modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 >dma2=0 ymode=2 isapnp=0 multiple=0

I only needed the second line of code.  Someone else on the forums had said to use this code as modprobe from the command line which was good for each session, but at every reboot the card wouldn't work again.  Andrew got it here!

Gateway Solo 2500 laptop, 36 mb ram, Pentium 1 233mhz, 2GB hdrive

What a great OS for this solid little machine!!

Posted by andrewb on Nov. 19 2006,22:40
JohnJS,

You need to execute the two 'modprobe' lines in my earlier post.:

modprobe opl3 io=0x388

modprobe opl3sa2 io=0x370 mss_io=0x530 mpu_io=0x330 irq=5 dma=1 dma2=0 ymode=2 isapnp=0 multiple=0

The ymode & isapnp items may need changed. To get more info on the modules type 'modinfo <modulename>' in a terminal window. This will give you more info on what the various items do. The modulenames you are interested in are opl3 & opl3sa2. There isn't an opl3sa3 module included for DSL - perhaps you can get things running with the opl3sa2 module though as the description of the module says it works with both -sa2 & -sa3 cards.

Posted by JohnJS on Nov. 21 2006,20:35
Thanks andrewb.
Had the sound working once but lost it on re-boot.
Now trying to figure out what I had done to get it to work.
Is there a way to save the setting once I get it working again?.

Posted by ^thehatsrule^ on Nov. 21 2006,20:52
Place the commands in a startup script, i.e. /opt/bootlocal.sh should do it.
Posted by JohnJS on Nov. 21 2006,21:20
Thanks andrewb and thehatsrule.
Sound now working. Had to change ymode and isapnp as suggested by andrewb.
Will put commands in bootlocal.

Powered by Ikonboard 3.1.2a
Ikonboard © 2001 Jarvis Entertainment Group, Inc.